ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3143Web Application Attack…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3143

    Cyber Security

    Progress0 / 21 done
    Topics21
    1Introduction to Cyber security2Networks and the Internet3Cyber threat landscape4Understanding security and information security principles5Information Security Terminology6Who are the attackers and Advanced Persistent Threat (APT)7Malware and types of malware8Attacks using malware and Malware Attack Lifecycle9Social engineering attacks and types of payload10Industrial Espionage in Cyberspace11Basic cryptography12Web application attacks13Database security14Cyber kill chain15Privacy and anonymity16Network security17Software security18Mobile device security and Mobile app security19Cyber Terrorism and Information Warfare20Introduction to Digital Forensics21Digital Forensics Categories
    3 min read
    Topic 12 of 21
    Topic Study Note Illustration
    12

    Web application attacks

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    576words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Cyber Security