Skip to content
Info disclosure Write-up Beginner

Is it easy to discover a critical vulnerability [P1] ?

The author found directory listing vulnerabilities on a large-scope program, which exposed log files containing SQL database credentials and the database IP address. An attacker could use these credentials to access the database directly.

pandurangisuprit Follow

Published on medium.com

Hello F.R.I.E.N.D.S, My name is Suprit (Hacker name- s3ctat0r) & I’m a bug bounty hunter & enthusiast learner.

Suprit Pandurangi, 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 web server had directory listing enabled and sensitive log files were stored in a publicly accessible directory.

What the attacker needed

Directory listing enabled on server; sensitive files stored in listed directory

The fix

The server should be configured to disable directory listing and restrict access to sensitive files.

How it was found

  1. Choose a large-scope bug bounty program and stick to it.
  2. Perform reconnaissance and focus on sensitive information leakage via directory listing.
  3. Use a wordlist (raft from SecList) and tools like Dirbuster, Dirsearch, or ffuf to brute-force directories.
  4. Observe server responses to find directory listing vulnerabilities.
  5. Discover three directory listings that leaked sensitive information, including a log file with SQL database credentials and DB IP address.

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 directory listing is when a web server shows a list of all files in a folder instead of a normal web page. If sensitive files like logs are in that folder, anyone can read them. Here, a log file contained the username and password for the database, so an attacker could log in to the database.

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.