Skip to content
Info disclosure Write-up Beginner

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.

offsec01 Follow

Published on offsec01.medium.com

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.

Facundo Fernandez, on offsec01.medium.com

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

  1. Scan a list of company subdomains with a tool that checks CNAME records.
  2. Filter the CNAMEs for potentially vulnerable domains.
  3. Scan the CNAME targets again with httpx to look for live responses.
  4. Fuzz the live CNAME target with ffuf using a wordlist.
  5. 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.

More by offsec01

View all

2 more disclosed reports, best first.

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.