Skip to content
Info disclosure Write-up Beginner

How I earned \(\) by finding confidential customer data including plain-text passwords!

A publicly accessible log directory with indexing enabled exposed compressed log files containing customer email addresses, phone numbers, partially masked credit card numbers, plain-text passwords, and Facebook OAuth tokens. An attacker could download these logs and obtain credentials and personal data for many customers.

Sushant Soni Follow

Published on medium.com

How directory indexing and file path traversal led to confidential customer data in plain sight!

Sushant Soni, 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 application stored sensitive customer data, including plain-text passwords, in log files placed in a web-accessible directory with directory indexing enabled, and the compressed log files were served without access control.

Impact

An attacker could download the logs and obtain customer email addresses, phone numbers, partially masked credit card numbers, plain-text passwords, and Facebook OAuth tokens, potentially leading to account compromise and a data breach.

What the attacker needed

None

The fix

The log directory should be moved outside the web root or protected by access controls, directory indexing should be disabled, and sensitive data such as passwords and tokens should never be written to logs.

How it was found

  1. Enumerate subdomains and probe them for live web services.
  2. Search for directories and files using a wordlist.
  3. Browse to the application logs directory and observe that directory indexing is enabled.
  4. Try to access the most recent log file directly and receive a 'No direct script access allowed' error.
  5. Notice a compressed version of the same log file and download it.
  6. Decompress and open the log file to find customer data including plain-text passwords and OAuth tokens.

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 web server can be set to show a list of files in a folder, like a directory listing on your computer. Here, a folder full of log files was left open to anyone, and the logs recorded sensitive customer details, including passwords stored without encryption. Anyone who found the folder could download the logs and read that data.

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.