ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Cyber Security
    COMP3143
    Progress0 / 21 topics
    Topics
    1. Introduction to Cyber security2. Networks and the Internet3. Cyber threat landscape4. Understanding security and information security principles5. Information Security Terminology6. Who are the attackers and Advanced Persistent Threat (APT)7. Malware and types of malware8. Attacks using malware and Malware Attack Lifecycle9. Social engineering attacks and types of payload10. Industrial Espionage in Cyberspace11. Basic cryptography12. Web application attacks13. Database security14. Cyber kill chain15. Privacy and anonymity16. Network security17. Software security18. Mobile device security and Mobile app security19. Cyber Terrorism and Information Warfare20. Introduction to Digital Forensics21. Digital Forensics Categories
    COMP3143›Web application attacks
    Cyber SecurityTopic 12 of 21

    Web application attacks

    3 minread
    576words
    Beginnerlevel

    Web Application Attacks

    What is a Web Application Attack?

    A Web Application Attack is an attempt by an attacker to exploit vulnerabilities in a web application to steal data, manipulate operations, or disrupt services. Web applications are particularly vulnerable because they are accessible over the internet and often handle sensitive data like user credentials, personal information, and financial details.


    Common Types of Web Application Attacks

    1. SQL Injection (SQLi)

    • Attackers insert malicious SQL commands into input fields or URLs.
    • Allows them to read, modify, or delete database data.

    Impact:

    • Unauthorized access to sensitive data
    • Data modification or deletion

    Example: Inputting ' OR '1'='1 in a login form to bypass authentication.


    2. Cross-Site Scripting (XSS)

    • Attackers inject malicious scripts into web pages viewed by other users.
    • The script executes in the victim’s browser.

    Impact:

    • Stealing cookies and session tokens
    • Redirecting users to malicious websites
    • Performing actions on behalf of the victim

    Types:

    • Stored XSS (permanent, stored on server)
    • Reflected XSS (temporary, reflected in response)
    • DOM-based XSS (executed in browser DOM)

    3. Cross-Site Request Forgery (CSRF)

    • Forces an authenticated user to perform unwanted actions on a web application.
    • Exploits the user’s session credentials.

    Impact:

    • Changing passwords
    • Making transactions
    • Performing admin actions without consent

    4. Remote Code Execution (RCE)

    • Exploits vulnerabilities that allow execution of arbitrary code on the server.

    Impact:

    • Complete server compromise
    • Installation of malware
    • Data theft

    5. File Inclusion Attacks

    • Attackers trick the application into including unauthorized files.

    Types:

    • Local File Inclusion (LFI): Includes files from the server itself
    • Remote File Inclusion (RFI): Includes files from external sources

    Impact:

    • Execution of malicious code
    • Information disclosure

    6. Directory Traversal

    • Attackers access restricted directories and files by manipulating URL paths.

    Impact:

    • Viewing sensitive files like /etc/passwd
    • Server information disclosure

    7. Insecure Direct Object References (IDOR)

    • Attackers manipulate object IDs (like user IDs) in URLs to access data of other users.

    Impact:

    • Unauthorized access to other users’ data

    8. Security Misconfigurations

    • Applications or servers with weak default configurations can be exploited.

    Examples:

    • Unpatched software
    • Default passwords
    • Exposed admin interfaces

    9. Broken Authentication and Session Management

    • Attackers exploit poor authentication/session controls to impersonate users.

    Impact:

    • Account takeover
    • Session hijacking

    10. Sensitive Data Exposure

    • Applications fail to protect sensitive data during storage or transit.

    Examples:

    • Weak encryption
    • Data sent over HTTP instead of HTTPS

    Common Prevention Techniques

    1. Input Validation & Sanitization – Prevent SQLi, XSS.
    2. Parameterized Queries / Prepared Statements – For database queries.
    3. Strong Authentication & Session Management – Use MFA, secure cookies.
    4. HTTPS / TLS Encryption – Protect data in transit.
    5. Security Patches & Updates – Keep servers, frameworks, and libraries updated.
    6. Access Control & Authorization Checks – Prevent IDOR.
    7. Web Application Firewalls (WAF) – Filter malicious traffic.
    8. Secure Coding Practices – Follow OWASP Top 10 recommendations.

    Summary Table

    Attack Type Description Impact
    SQL Injection Inject malicious SQL Data theft/manipulation
    XSS Inject scripts into pages Cookie theft, phishing
    CSRF Force user actions Unauthorized transactions
    RCE Execute code on server Full server compromise
    File Inclusion Include unauthorized files Code execution, data theft
    Directory Traversal Access restricted files Sensitive info disclosure
    IDOR Manipulate object IDs Access other users’ data
    Security Misconfiguration Weak configs Exploitation of server
    Broken Authentication Poor session/auth Account takeover
    Sensitive Data Exposure Unprotected sensitive info Data theft

    Conclusion

    Web applications are common targets due to their accessibility and handling of sensitive data. Understanding these attacks and implementing preventive measures is essential for cybersecurity. Developers must follow secure coding practices and organizations should monitor, test, and patch applications regularly.

    Previous topic 11
    Basic cryptography
    Next topic 13
    Database security

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count576
      Code examples0
      DifficultyBeginner