Skip to content
Info disclosure Write-up Beginner

How I Found Sensitive Data on a Website Through Security Testing

A development subdomain exposed a publicly accessible file containing usernames, email addresses, and internal IDs. An attacker could access this sensitive user information without authentication.

medium.com

Published on medium.com

This is how I used manual testing, automation tools, and persistence to uncover a file with user information on a website, and what I learned from the process.

Rejen, 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 the development server was not properly secured and a file containing user data was left publicly accessible.

Impact

The exposed file could allow an attacker to obtain usernames, email addresses, and internal IDs, which could be used for further attacks or privacy breaches.

What the attacker needed

Publicly accessible development subdomain; no authentication required

The fix

The development server should be secured or restricted from public access, and the sensitive file should be removed.

How it was found

  1. Enumerate subdomains using tools like Sublist3r and Amass.
  2. Visit each subdomain and identify a development server that seems less secure.
  3. Run directory enumeration with dirb on the development subdomain.
  4. Open the discovered users.txt file in a browser and confirm it is publicly accessible.

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 development server is a copy of a website used for testing, and it should not be accessible to the public. Here, a file with user details was left on such a server, and anyone who found the server could read it. This is like leaving a customer list on a public bench.

What is Info disclosure?

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

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.