Skip to content
Info disclosure Write-up Beginner

Heres How I Found A Leaked Database Through Google Dorking

A publicly accessible database backup file was found through Google dorking, containing database credentials with hashed passwords, configuration details and sensitive user data. A separate public REST API endpoint also exposed usernames, which together could have led to serious breaches.

HackerNasr Follow

Published on infosecwriteups.com

Like many bug hunters, I often find myself sifting through search engines, hoping to uncover something noteworthy for a particular engagement. It’s a mix of curiosity, patience, and skill.

HackerNasr, on infosecwriteups.com

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 a database backup file was stored in a publicly reachable web location without access restrictions, and an API endpoint exposed usernames without proper protection.

Impact

The exposed credentials, configuration details and user data could lead to serious breaches, and combined with the username-exposing API it created a perfect storm for exploitation.

What the attacker needed

Publicly reachable backup file; search engine indexing of the file

The fix

Access to the backup file should be restricted and the exposed API endpoint secured.

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 database backup is a copy of a site's data, usually meant to be kept private. This one was left on a public web server where anyone could download it, and it held login details and user information. Search engines can index such files, so a simple search can reveal them.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by HackerNasr

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.