





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






OWASP Top 10 Foundations - Beginner Track Ā· PortSwigger Web Security Academy Labs Name Muhammad Raza Company AstraQuantum Tech Program Offensive Security Training - Beginner Track Report Week 4 - Web Application Security (OWASP Top 10 Foundations) Date September 5, 2026
This report documents the completion of the AstraQuantum Tech Week 4 assignment, Task WEBSEC-W01-BEGINNER: Web Application Security. The objective of this task was to build a working foundation in the OWASP Top 10 by completing a set of Apprentice- level labs on the PortSwigger Web Security Academy. Each lab was approached end-to- end - recognising the vulnerability, exploiting it manually using Burp Suite, and reasoning through its real-world impact beyond the immediate lab scenario. Four labs were completed in total: two examples of Injection (A03), and two examples of Broken Access Control (A01). The fourth lab was substituted from the originally assigned CSRF exercise, as explained in that lab's section below, so that the full set could be completed using Burp Suite Community Edition without loss of learning value.
OWASP CATEGORY A03 - Injection PAYLOAD ' OR 1=1--
Mitigation Implement parameterized queries (prepared statements) on the backend to ensure all user input is handled strictly as string data rather than executable SQL code.
OWASP CATEGORY A03 ā Injection PAYLOAD _Figure 2.1 - JavaScript alert box firing, confirming the injected Explanation This vulnerability occurs because the application takes user input from the search parameter and echoes it directly into the HTML response without any sanitization or encoding. Because the input is not treated as raw text, the victim's browser interprets the injected
Reason for Substitution The originally assigned CSRF vulnerability lab required the automated "Generate CSRF PoC" tool, which is exclusive to Burp Suite Professional. Following instructor guidance, this optional bonus lab was substituted so it could be completed using Burp Suite Community Edition. OWASP CATEGORY A01 - Broken Access Control PAYLOAD ../../../etc/passwd Figure 4.1 - Burp Suite request/response: filename=../../../etc/passwd returns the server's /etc/passwd file. Figure 4.2 - Lab solved: file path traversal confirmed.
Explanation The application processes the filename parameter to fetch image files but fails to strip or sanitize directory traversal sequences (../). By injecting these sequences, an attacker forces the backend server to navigate up the directory tree and retrieve arbitrary files from the file system. In a real-world scenario, this flaw allows attackers to steal highly sensitive operating system files, application source code, or configuration files containing hardcoded database credentials. Mitigation Validate all user-supplied filenames against a strict allowlist of permitted files. Additionally, resolve the absolute path of the requested file using built-in file system APIs and verify that it resides strictly within the intended base directory before granting read access.
The table below maps each completed lab to its corresponding OWASP Top 10 category. # Lab OWASP Top 10 Category 1 SQL injection vulnerability in WHERE clause allowing retrieval of hidden data A03 - Injection 2 Cross-site scripting (XSS): reflected XSS into HTML context with nothing encoded A03 - Injection 3 Unprotected admin functionality A01 - Broken Access Control 4 File path traversal, simple case (optional - substituted for CSRF) A01 - Broken Access Control