BAC: Sensitive Information Disclosure via Publicly Accessible Dat
A database backup file containing usernames and password hashes was publicly accessible at a predictable URL. An attacker could download it and attempt offline cracking of the hashes to gain unauthorised access to user accounts.
While performing a security assessment using Fleetfolio’s Pentest and Threat Exposure modules, I discovered a critical security issue that exposed a publicly accessible MariaDB database backup file containing user account information. The backup file included usernames and password hashes that could potentially be…
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 stored inside the web server's public directory without access controls, so the server served it as a normal download.
Impact
An attacker could obtain usernames and password hashes, potentially crack weak passwords offline, and use recovered credentials for credential stuffing or unauthorised account access.
What the attacker needed
None
The fix
The backup file should be removed from the web root, stored outside it, and access to backup extensions should be denied by the web server.
How it was found
- Find the publicly accessible endpoint for the backup file.
- Request the URL and download the users.sql file.
- Open the file and observe usernames and password hashes.
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 backup file of the user database was left in a folder that anyone on the internet could reach. The file held usernames and scrambled passwords (hashes). If someone downloads it, they can try to unscramble weak passwords offline and then log in as those users.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.