Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Lab 7 - Introduction to Web App Hacking (Part 1)

Overview

This repository contains the practical lab report and screenshots for Lab 7 - Web Application Hacking (Part 1), completed on PortSwigger Web Security Academy.


Tools Used

Tool Purpose
Burp Suite Community Edition v2025.12.5 Web application security testing proxy
Kali Linux (VMware VM) Penetration testing OS
PortSwigger Web Security Academy Hands-on lab platform

Vulnerabilities Covered

✅ Vulnerability 1 - File Path Traversal (LFI)

How it works: The application loads product images using a filename parameter without validation. By injecting ../../../etc/passwd, we traversed up the directory tree and read a sensitive server file.

GET /image?filename=../../../etc/passwd HTTP/2

✅ Vulnerability 2 - OS Command Injection

How it works: The stock check feature passes user input directly to a shell command. By injecting |whoami after the storeId value, we chained an OS command and got back the server's current user.

POST /product/stock
productId=3&storeId=1|whoami

Response: peter-C55TYa

Repository Structure

Lab-7-Web-App-Hacking/
├── README.md
├── Report/
│   └── Lab7_Web_App_Hacking_Report.docx
└── Screenshots/
    └── (all lab screenshots)

References

About

Lab 7 - Web App Hacking: File Path Traversal & OS Command Injection labs using Burp Suite | PortSwigger Web Security Academy

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors