When I Found a docker-compose.yml
A publicly accessible docker-compose.yml file on a FAQ domain exposed live MySQL credentials and internal service architecture. An attacker could use these credentials to access the database and map internal services, potentially leading to data modification or lateral movement.
medium.com
Published on medium.com
Some bug bounty stories start with clever payloads, boundary-pushing exploits, or hours of reverse engineering.
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 the docker-compose.yml file was accidentally deployed to a public web directory without access restrictions.
Impact
The exposed credentials could allow an attacker to access the database, modify or dump data, and use the architecture details to plan further attacks, though the text does not confirm any actual exploitation.
What the attacker needed
None
The fix
The issue was fixed, credentials were rotated, and the configuration was locked down; recommended steps include removing the file from public directories and using secrets management.
How it was found
- During recon, test directories and endpoints on the target domain.
- Discover a path to docker-compose.yml on the FAQ domain.
- Open the URL in a browser and view the file contents.
- Observe that the file contains live MySQL credentials and internal architecture details.
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 docker-compose.yml file is a configuration file that tells Docker how to run multiple services together. It often contains passwords and internal network details. If this file is left on a public website, anyone can read it and learn how 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.