Leaked DB credentials on https://██████████.mil/███
A publicly accessible PHP info file exposed database connection credentials and host system details. An attacker could use these credentials to access the database and learn sensitive information about the server.
- Disclosed after 12 months
Summary: Information disclosure with login credentials for ms-sql database exposed.
Description: I've found a PHP info file disclosed on https://█████.mil/██████ containing login credentials for a database cloud server (███████) as well as information on the host system such as hostname, username and full paths. The database server is up, but I have not tried connecting to it with the credentials, as I feel that would be going too far.
Impact
Possible access to database as well as disclosure of sensitive host information.
Step-by-step Reproduction Instructions
- Go to https://██████████.mil/████████
- Search for 'password', you should see this:
Data Source=tcp:███,█████████;Initial Catalog=██████████;User Id=████@██████████;Password=███████ - Run
nc -vvv █████████ █████to confirm database is running and service ms-sql-s is accepting connections:
(UNKNOWN) [███████] ████████ (ms-sql-s) open ^C sent 0, rcvd 0
Product, Version, and Configuration (If applicable)
Suggested Mitigation/Remediation Actions
███████ should not be available on the server.
Impact
Possible access to database as well as disclosure of sensitive host information.
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
Impact
An attacker could potentially access the database and obtain sensitive host information, though the reporter did not attempt to connect.
What the attacker needed
None
The fix
The database server should not be exposed on the server.
How it was found
- Visit the disclosed PHP info page on the .mil domain.
- Search the page for the word 'password' to find the database connection string.
- Use a network tool to confirm the database service is reachable.
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 PHP info file is a page that shows details about the server's setup, and it was left publicly visible. It accidentally included a username and password for a database, so anyone who found the page could see them. The reporter did not actually log in, but the risk is that someone else could.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.