Skip to content
Info disclosure Disclosed report Beginner

Sensitive Data Exposure via wp-config.php file

A WordPress config file was publicly accessible, exposing database and cloud credentials and other keys.

0r10nh4ck Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 37 hours
  • Fixed in 33 days
  • Disclosed after 57 days

Description:

Hi team, A copy of the WordPress config file wp-config.php has been found at █████████ endpoint. It contains sensitive information, such as MySQL and AWS credentials, and various keys.

References

https://codex.wordpress.org/WordPress_Files

Impact

The page provides information to users who do not need it.

System Host(s)

████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Go to: ███/wp-config.php_
  2. See the information.

Suggested Mitigation/Remediation Actions

Implement access control.

The original report as published on HackerOne, by 0r10nh4ck. 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 misconfiguration where the web server served the wp-config.php file instead of blocking access to it.

Impact

The exposed credentials could allow an attacker to access the database and AWS services, though the report does not demonstrate actual exploitation.

What the attacker needed

None

The fix

Access to the wp-config.php file should be blocked at the web server level.

How it was found

  1. Go to the URL ending in wp-config.php_
  2. See the exposed information.

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 WordPress config file was left downloadable. It normally holds database and cloud passwords. The report says this exposes information to users who do not need it.

What is Info disclosure?

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

More by 0r10nh4ck

View all

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