Information Disclosure Menggunakan Dirsearch
A backup copy of a configuration file was left publicly reachable on a website, and a directory brute-force scan found it. Anyone who located the file could read the sensitive settings it contained.
medium.com
Published on medium.com
Tujuan kita kali ini adalah mengidentifikasi file cadangan (backup) pada sebuah situs web yang berpotensi mengandung informasi sensitif, seperti config.php.bak. Untuk melakukan pemindaian ini, kita akan menggunakan tool dirsearch di Kali Linux.
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
Root cause
Likely the backup file was left in the web root and the server was configured to serve it rather than block or remove it.
Impact
The text only says the file could contain sensitive information; it does not show what was inside or prove any further access.
What the attacker needed
Target web server reachable; a wordlist of file names
How it was found
- Prepare a wordlist, either the tool's built-in list or a custom one.
- Run the directory scanning tool against the target with backup file extensions and a delay between requests.
- Review the responses and find the backup configuration file among the results.
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.
Websites sometimes keep backup copies of files, such as an old copy of a settings file, next to the live one. If the server does not block those copies, anyone can download them and read whatever secrets they hold. Here a scanning tool tried many common file names until it found one.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.