๐Ÿงฉ Challenge Overview

This challenge involved exploiting a misconfigured web app to gain unauthorized access to internal data.


๐Ÿ” Enumeration

```bash nmap -sC -sV 10.10.10.10 ``` Discovered ports:

  • 80/tcp, HTTP (Apache 2.4.41)
  • 22/tcp, SSH (OpenSSH 8.2p1)

๐Ÿ’ฅ Exploitation

During directory fuzzing with `ffuf`, found `/backup.zip`. Unzipped credentials for `admin:SuperSecure123`. Login exposed an LFI vulnerability at `index.php?file=…`.

```bash curl “http://target/index.php?file=../../../../etc/passwd” ```


๐Ÿง‘โ€๐Ÿ’ป Privilege Escalation

After gaining shell access: ```bash linpeas.sh | tee output.txt ``` Found `/usr/local/bin/backup` with SUID bit. Exploited it via `bash -p` to spawn a root shell.


๐Ÿงพ Lessons Learned

  • Always check for exposed archives.
  • Automate directory brute-forcing early.
  • LFI โ†’ Config file disclosure โ†’ RCE chain is common in PHP apps.

๐Ÿ“ธ Screenshots

LFI Exploit Screenshot