
Full black-box penetration test against SecOS:1 (VulnHub) — CSRF exploitation, privilege escalation via CVE-2015-1328 (OverlayFS), post-exploitation
Full black-box penetration test against SecOS:1, a deliberately vulnerable CTF machine from VulnHub. Objective: simulate a real-world attacker with zero prior knowledge and achieve root-level compromise, evidenced by retrieving /root/flag.txt.
All testing was conducted within a controlled virtual lab (Apporto Cloud) as part of a university module. No real systems were targeted.
| Machine | Role | IP |
|---|---|---|
| Kali Linux (saqib85) | Attacker | 192.168.122.186 |
| SecOS:1 (InfoSecOS) | Primary Target | 192.168.122.202 |
| Ubuntu DVWA | Additional Target | 192.168.122.51 |
| Windows XP | Additional Target | 192.168.122.6 |
192.168.122.0/24Followed the Hacking Exposed framework (McClure, Scambray & Kurtz, 2003):
| File | Description |
|---|---|
README.md | This file |
exploit-commands.sh | All commands across every phase |
hint page source
apache log
spiderman login
ssh login
mongodb
backdoor user
cronjob
cronjob connection
Disclaimer: All testing was conducted against a deliberately vulnerable CTF machine within a controlled university lab environment (CSI_7_PTE, LSBU). Authorised for educational purposes only.
| Step | Action | Detail |
|---|
| 1 | Network Discovery | Nmap · Netdiscover identified 192.168.122.202 as target |
| 2 | Port Scan | Port 22 (OpenSSH 6.6p1) · Port 8081 (Node.js/Express) |
| 3 | Web Enumeration | Gobuster · Dirb · Nikto → found /hint, /change-password, /users, /messages |
| 4 | CSRF Exploit | Crafted holidays.html → sent to admin spiderman → password changed to abc123 |
| 5 | Credential Discovery | Spiderman inbox contained SSH password: CrazyPassword! |
| 6 | SSH Access | Shell gained as spiderman on port 22 |
| 7 | Privilege Escalation | LinPEAS → kernel 3.13.0-24 → CVE-2015-1328 (OverlayFS) → root shell |
| 8 | Proof of Compromise | Retrieved /root/flag.txt |
| 9 | Post Exploitation | Dumped /etc/passwd and /etc/shadow · extracted MongoDB records · cracked SHA-256 hashes · cleared logs · created backdoor user + cron reverse shell on port 4444 |
| Vulnerability | Severity | CVSS | CVE |
|---|
| Ubuntu 14.04 LTS — End of Life | Critical | 10.0 | — |
| OverlayFS privilege escalation | Critical | — | CVE-2015-1328 |
| OpenSSH 6.6p1 — outdated / username enum | High | 7.8 | CVE-2018-15473 |
| Node.js RCE via node-serialize | High | 7.5 | — |
| CSRF on /change-password endpoint | High | — | — |
| MongoDB — no authentication | High | — | — |
| SHA-256 hashing without salting | High | — | — |
| Slowloris DoS | Medium | 5.0 | CVE-2007-6750 |
| Missing HTTP security headers | Low | — | — |
| ICMP timestamp disclosure | Low | 2.1 | — |
| Category | Tools |
|---|
| Discovery | Nmap, Netdiscover |
| Web Enumeration | Gobuster, Dirb, Nikto |
| Vulnerability Assessment | Nessus Essentials, Searchsploit |
| Exploitation | Burp Suite, Metasploit |
| Privilege Escalation | LinPEAS, GCC, Exploit-DB 37292.c |
| Post Exploitation | John the Ripper, Netcat, SSH |
| Infrastructure | Apache2 (payload hosting) |
csrf-exploit.html | CSRF payload that changed spiderman's password |
user-creation.sh | Attacker user setup on Kali |