Critical Information Disclosure Vulnerability via CNAME (AUTOMATED SCAN)
A subdomain's CNAME pointed to an internal host that exposed a docker-compose.yml file. An attacker could read this file to learn about the internal service configuration.
If you haven’t read my latest post, go take a look, it’s worth it DATA BREACH: 500.000 US passports found via an IDOR vulnerability.
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 internal host was publicly reachable and served sensitive configuration files without access control.
Impact
An attacker could read the docker-compose.yml file, which may reveal internal service configuration and potentially sensitive information.
What the attacker needed
Knowledge of the subdomain; publicly reachable CNAME target
How it was found
- Scan a list of company subdomains with a tool that checks CNAME records.
- Filter the CNAMEs for potentially vulnerable domains.
- Scan the CNAME targets again with httpx to look for live responses.
- Fuzz the live CNAME target with ffuf using a wordlist.
- Find a live endpoint serving docker-compose.yml.
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 CNAME is a DNS record that points one domain name to another. Here, a company subdomain pointed to an internal host, and that host served a configuration file (docker-compose.yml) that should not have been public. Anyone who found the file could read details about the internal setup.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.