Skip to content
Info disclosure Disclosed report Beginner

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.

al-madjus Follow

Originally disclosed on HackerOne

Critical View original
  • 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

  1. Go to https://██████████.mil/████████
  2. Search for 'password', you should see this: Data Source=tcp:███,█████████;Initial Catalog=██████████;User Id=████@██████████;Password=███████
  3. 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.

The original report as published on HackerOne, by al-madjus. 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

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

  1. Visit the disclosed PHP info page on the .mil domain.
  2. Search the page for the word 'password' to find the database connection string.
  3. 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.

More by al-madjus

View all

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