Exposed wp-config.php file in ███ National Guard website
A WordPress config file was publicly accessible on a National Guard website, exposing the plaintext database password and other secrets.
Originally disclosed on HackerOne
- Triaged in 4 hours
- Fixed in 11 days
- Disclosed after 4 months
Description:
Hi, team!
I found a ██████████ National Guard website with the subdomain/domain ████████. I know, it is strange they use the azurewebsites.us domain, but apparently it's an official website.
I noticed that some official websites from Department of Defense have versions with the exact same website in azurewebsites.us, however I didn't find the original website with the original domain, but I really think this finding is valid.
████ ███████ █████████
A copy of the WordPress config file wp-config.php has been found at █████████ endpoint. It contains sensitive information, such as MySQL and various keys.
Impact
The page provides sensitive information, for example, the database password in plain text.
System Host(s)
████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Open the link: ██████████
████
Note this detail: 'DB_HOST', '████████'
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 the web server was misconfigured to serve the wp-config.php file as plain text instead of executing it or blocking access.
Impact
The page provides sensitive information, for example, the database password in plain text.
What the attacker needed
None
The fix
Access to the wp-config.php file should be restricted via access control.
How it was found
- Open the provided link to the exposed 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 a website uses to connect to its database. If that file is left where anyone can download it, attackers can see the password and other secrets, which might let them break into the database.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.