Skip to content
Info disclosure Write-up Beginner

Find Bug in 10 Minutes: Critical SQL File Leak Reveals Sensitive Data

A publicly accessible SQL file containing usernames, passwords, emails and account details was exposed without authentication. An attacker could download it and use the credentials for unauthorised logins or steal the data.

firdansp Follow

Published on medium.com

Recently, I discovered a critical vulnerability related to exposed sensitive information on a publicly accessible SQL file.

0verRida, on medium.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 insufficient access control on a publicly accessible SQL file, allowing unauthenticated download of sensitive data.

Impact

Exposed usernames and passwords could lead to unauthorised logins, and sensitive user information like emails and account details could be stolen.

What the attacker needed

None

The fix

The issue was resolved after reporting, and the recommended fix is to secure sensitive files with proper access control, reset passwords, enable MFA and audit public files.

How it was found

  1. Used a Google search query to find exposed SQL files.
  2. Navigated to the publicly accessible URL of the SQL file.
  3. Opened the file without any authentication or restriction.
  4. Observed sensitive data including usernames, passwords and emails.

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 file was left on a public web server where anyone could download it. The file held user login details, so anyone who found it could read them and potentially log in as those users. This is like leaving a copy of the office key list on the front door.

What is Info disclosure?

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

More by firdansp

View all

5 more disclosed reports, 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.