Skip to content
Info disclosure Write-up Beginner

FUZZING That Leads to Internal Source Code!

A fuzzing technique revealed a directory containing many files, including a PHP file with hardcoded MySQL database credentials in plain text. An attacker could use these credentials to access the database, potentially leading to further compromise.

rootplinix Follow

Published on medium.com

Hey folks, it’s me, Abu Hurayra (aka rootplinix) — a bug hunter by day and writer by night. You could say I’m just a messy guy on a quest for P1 (or something equally thrilling!).

Abu Hurayra, 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, sensitive database credentials were hardcoded in a PHP source file that was publicly accessible.

Impact

The exposed credentials could allow an attacker to access the database, though the report notes the files were hosted on AWS and exploiting them would not be straightforward.

What the attacker needed

Access to the tar archive; knowledge of file names to fuzz

How it was found

  1. Download and unpack a tar archive containing many directories and files.
  2. Use the tree command to list files and grep for a specific PHP filename to find unique files.
  3. Open one of the found files (check_db.php) and inspect its contents.
  4. Identify hardcoded database credentials in the file.

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.

The researcher used a tool to guess file and folder names on a website, a technique called fuzzing. They found a file that contained a database username and password written directly in the code, which is like leaving your house key under the doormat. Anyone who finds that file could log into the database and steal or change data.

What is Info disclosure?

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

More by rootplinix

View all

3 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.