Skip to content
Info disclosure Disclosed report Beginner

Exposure of Sensitive Debug File Containing database dump with passwords in plain text

A publicly accessible debug file exposed plaintext database credentials, including usernames and passwords. An attacker could use these credentials to connect directly to the database and access or modify sensitive data.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 17 days
  • Disclosed after 10 months

Description: A publicly accessible debug file (debug.txt) was discovered on the target web application, exposing sensitive database credentials, including usernames and passwords. This issue poses a severe security risk as it allows unauthorized access to the database, potentially leading to data breaches, privilege escalation, or further exploitation of the system.

Link: ████████

References

███

Impact

Data Breach: Confidential data could be extracted or modified. Privilege Escalation: If the credentials belong to a privileged account, attackers may gain further control over the system.

System Host(s)

██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Open a web browser or use curl/wget to access the following URL:

████

The file contains plaintext user credentials, such as:

                    [user] => orgpri
                    [passwd] => 12!@QWasz
                    [dbname] => org_priority
                    [dbtype] => mysql
                    [server] => mysql

These credentials could allow an attacker to directly connect to the database and manipulate sensitive data.

Suggested Mitigation/Remediation Actions

Remove the debug.txt file.

The original report as published on HackerOne, by jonasdiasrebelo. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a debug file containing sensitive configuration details was accidentally left publicly accessible on the web server.

Impact

An attacker could directly connect to the database and manipulate sensitive data, potentially leading to a data breach or privilege escalation.

What the attacker needed

The debug file is publicly accessible

The fix

The debug file should be removed from the public web server.

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 report has not been written yet. The Original tab links to the source.

A debug file left on a website contained the username and password for the database. Anyone who found the file could use those details to log into the database and read or change private information.

What is Info disclosure?

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

More by jonasdiasrebelo

View all

27 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.