Exposed wp-config.php file
A WordPress configuration file was publicly accessible, exposing database and cloud credentials plus other secrets; the reporter claims this could lead to remote code execution.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 18 days
- Disclosed after 6 months
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. This domain is in scope, I already had to reports accepted in this domain.
References
████████
Impact
The page provides information to any user get a RCE without any problem.
System Host(s)
████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Open the link:
█████████
And see the file.
Suggested Mitigation/Remediation Actions
Implement access control.
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 as plain text instead of blocking access to it.
Impact
The exposed credentials could allow an attacker to achieve remote code execution, though the report does not demonstrate this.
What the attacker needed
None
The fix
Access to the configuration file should be restricted so it is not publicly readable.
How it was found
- Open the provided link.
- Observe the contents of the configuration 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 report has not been written yet. The Original tab links to the source.
A configuration file is like a settings file that holds secret passwords and keys. Here, that file was left where anyone on the internet could open it. Because it contained database and cloud passwords, a stranger could use them to break into the system.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.