Vulnerability Assessment CTF 1

Scan http://target.ine.local, run a Nessus assessment, and capture four flags.

eJPT preparation · Write-up by Zeliha Zengin

Lab Environment

A target machine is at http://target.ine.local, with a Nessus dashboard at https://localhost:8834/.

NmapNessusdirb
Note: Flag format is FLAG1_MD5Hash — submit only the hash (no underscore).

All work is performed against an authorized INE training lab for eJPT exam preparation.

Flag 1 — Exposed .git directory

nmap -sV -A -sC -Pn -p- target.ine.local
cat /etc/hosts   # target.ine.local = 192.191.51.3

The scan surfaces a /.git/ directory — a version-control artifact left in the webroot:

http://192.191.51.3/.git/
🏁 FLAG 1: 63055f5ac15f493f8b336d359e983997

Flag 2 — Loose data storage

Check robots.txt (found by Nmap). The passwords/, config.inc, and phpmyadmin paths look interesting — the flag is hidden in the data storage area.

🏁 FLAG 2: (revealed in the storage/phpMyAdmin area from robots.txt)

Flag 3 — phpinfo.php

Directory brute-forcing reveals a phpinfo.php page that discloses server configuration:

dirb http://192.191.51.3
# → /phpinfo.php
http://192.191.51.3/phpinfo.php
🏁 FLAG 3: bf52963aad2045ec8e5863842301619b

Flag 4 — Sensitive directory

The passwords/ directory discovered via robots.txt contains a flag.txt:

http://192.191.51.3/passwords/   → flag.txt
🏁 FLAG 4: 59f5e5e771de4413a625c47b92908830

Summary

FlagTechnique
1Exposed .git/ directory in the webroot
2robots.txt → loosely-secured storage
3phpinfo.php information disclosure
4Sensitive passwords/ directory

Key Takeaways