Ethical Hacker · Sept – Oct 2024
Penetration Testing Challenge
Web App Exploitation
A structured web application penetration test against a deliberately vulnerable environment. The goal was to trace the full compromise chain, from unauthenticated external access through FTP credential discovery, SSH login, and privilege escalation to root.
Penetration Testing · Vulnerability Exploitation
The challenge
The challenge was to find the initial foothold without prior knowledge of the environment, no credentials, no source code. The attack surface included a web application, an FTP service, and SSH, each with different misconfiguration patterns to discover.
The solution
Ran Nmap to enumerate all open services and identify FTP with anonymous access hints. Captured cleartext FTP credentials via Wireshark during a passive traffic capture phase. Used Gobuster to brute-force directory listings and expose an admin panel. Analyzed .bash_history on the compromised account for previously run commands revealing credential reuse. Completed privilege escalation to root via Hydra brute-force on a sudo-enabled account.
Tech stack
- Nmap
- Initial service and port enumeration
- Wireshark
- Plaintext credential capture from FTP traffic
- Gobuster
- Directory brute-force for hidden endpoints
- Hydra
- Password brute-force for privilege escalation
- Burp Suite
- Web application interception and parameter analysis
Outcomes.
01
Full compromise chain documented: anonymous FTP → SSH → root
02
Plaintext credentials discovered via Wireshark passive capture
03
Privilege escalation achieved through .bash_history analysis and Hydra brute-force
04
Attack narrative and remediation steps delivered in structured report