Web Penetration Testing: Finding Hidden Directories on TryHackMe
Overview
- Target: http://fakebank.thm
- Objective: Identify hidden directories and simulate a transaction manipulation.
- Methodology: Reconnaissance, Enumeration, and Exploitation.
Prerequisites & Tool
- Concepts: Brute Force, Reconnaissance, Enumeration, and Exploitation.
- Environment: Linux Terminal
- Tool: dirb
Phase 1: Lab Preparation
- Click View Site, it will launch the Virtual Laboratory
- Ensure you are accessing the target site http://fakebank.thm.
Phase 2: Searching for Hidden Pages
The bank's landing page may appear secure with high-level encryption. However, security is only as strong as its weakest link. In this scenario, the administrator left a "hidden" page accessible to the public.
To find it, we use dirb, a web content scanner. It performs a brute-force attack against the webserver using a wordlist to find hidden directories and files.
dirb [target link]
After running the scan, look for lines marked with a +. These indicate discovered directories. In this lab, the scanner reveals a sensitive path.
Phase 3: Exploitation
Following the lab instructions, I performed a manual transaction manipulation. This simple act of finding an unprotected page allowed for a complete bypass of the bank's intended security flow, eventually revealing the hidden Flag.
Key Takeaways
- Security through obscurity is not security. Just because a link is not visible on the homepage does not mean it's hidden from attackers.
- Proper Access Control and directory permissions are just as important as encryption.



Post a Comment for "Web Penetration Testing: Finding Hidden Directories on TryHackMe"