Admin Account total Information Disclosure
A WordPress configuration file was publicly accessible, exposing database credentials and admin details in plaintext. The attacker could use these credentials to connect to the database and access sensitive information.
Published on medium.com
Hi Everyone, this is my 2nd writeup on the issue I found on one of India’s premier website for sharing Startup and Tech News.
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 a misconfigured web server that served a sensitive WordPress configuration file (such as wp-config.php) as plain text instead of executing it or blocking access.
Impact
An attacker could obtain database credentials and connect to the database, potentially accessing or modifying sensitive data.
What the attacker needed
None
The fix
The issue was fixed by the website owner after being informed.
How it was found
- Capture a request to the website with an arbitrary identifier.
- Check the responses for different payloads one by one.
- Open the response for the payload named '1'.
- Observe that the file contains plaintext database credentials and admin details.
- Use the credentials to connect to the database successfully.
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.
A website accidentally left a private file open to anyone on the internet. That file contained the username and password for the site's database, like leaving the key to a safe in plain sight. An attacker could then log in to the database and see or change everything.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.