Hands-On Cybersecurity: Solving the Vulnerability Assessment CTF Lab

Reconnaissance & Exploitation: Resolving the Vulnerability Assessment CTF 1
Welcome to PurePQC, a personal cybersecurity portfolio and technical blog founded by Adi Vora. This platform documents practical laboratory challenges, ethical hacking methodologies, and system security fundamentals. In this write-up, I break down the core engineering concepts behind solving the Vulnerability Assessment CTF 1 laboratory environment without relying on automated dashboards.
Here is the step-by-step breakdown of how the environment was audited and how all four hidden security points were successfully validated.
Phase 1: Initial Reconnaissance & Port Scanning
Every structured security assessment begins with mapping out what systems are exposed. I initiated an infrastructure audit against the local target network to identify active ports, open pathways, and active software versions.
The Command Used:
nmap -sV -sC -T4 target.ine.local
• What it does: Maps live network hosts and services.
• Why it was used: The -sV flag probes open ports for service and version details, the -sC flag runs default Nmap scripts for common vulnerabilities, and the -T4 flag speeds up scanning.
• The Result: The scan uncovered an active web server on Port 80 and an exposed backend service on Port 3306.
Phase 2: Vulnerability Analysis & Validation
Point 1: Hidden Version Control Leakage (.git Exposure)
• The Command Used: gobuster dir -u http://ine.local -w /usr/share/wordlists/dirb/common.txt
• Why it was used: To discover hidden paths and undocumented structural assets.
• The Validation: Brute-forcing directories uncovered a live version control node hidden in the target directory tree, which allows third parties to review software changes and commit history.
Point 2: Unsecured Backend Storage Access
• The Method Used: Direct URL path inspection and layout mapping.
• Why it was used: To check if internal files and database configurations could be viewed without logging in.
• The Validation: The system allowed database structures to remain exposed. Auditing the directories revealed structural schema folders containing the target verification token.
Point 3: Information Disclosure via Diagnostic Scripts (PHP Info)
• The Method Used: Manual directory fuzzing and Nmap's http-enum script.
• Why it was used: To search for developmental diagnostic tools or test setups left behind by developers.
• The Validation: Navigating directly to the script rendered environmental logs, exposing the verification string inside active server variables.
Point 4: Administrative Directory Discovery via Robots.txt
• The Method Used: Reading the target's public http://ine.local/robots.txt file directly.
• Why it was used: Administrators frequently leak private paths by explicitly telling search engines to ignore them.
• The Validation: Reviewing the public text file revealed a custom route meant to be restricted, which contained a text configuration file with the final verification parameter.
PurePQC Hardening Summary
Securing web-facing projects requires direct configuration changes to block discovery techniques:
1. Deny public access to hidden version control folders through explicit server rule files.
2. Run deployment checks to clean out developer diagnostic scripts from live production environments.
3. Lock down directory structures with strict file system permissions rather than relying on index exclusion text files.
Thank you for visiting PurePQC. Stay tuned as I continue to share my personal cybersecurity journey, laboratory breakdowns, and technical portfolio updates.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *