“The Directory Bruteforcer That Found a Fortune: Mastering Gobu
A directory bruteforcing scan revealed an unprotected backup file containing source code and hardcoded database credentials. The attacker could download the file and use the credentials to access the user database.
Published on amannsharmaa.medium.com
I almost skipped the scan. The target, a sleek fintech startup, seemed airtight.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
The credentials gave read/write access to the user database, which could lead to data theft or modification.
What the attacker needed
Target has hidden directories; wordlist with common paths; no authentication on backup file
How it was found
- Run a basic directory scan with a common wordlist.
- Switch to a larger wordlist and find new paths like /internal.
- Re-run the scan on the /internal/ path with backup file extensions.
- Download the unprotected backup file and extract credentials.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A directory bruteforcer is a tool that tries many common folder and file names on a website to find hidden ones. Here, a backup file was left publicly accessible, and it contained passwords that let someone access the database.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.