Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover of █████████

A subdomain pointed via a CNAME record to an unclaimed domain, allowing an attacker to claim that domain and take over the subdomain. The reporter claimed the domain and hosted a proof-of-concept file to demonstrate the takeover, noting that an attacker could use it for phishing, cookie hijacking, or XSS.

martinvw Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 2 days
  • Fixed in 5 months
  • Disclosed after 7 months

Summary by the researcher

A subdomain of ███████ was vulnerable to a subdomain takeover because it pointed to an unclaimed domain.

The report

I have found a subdomain of ███████ to be vulnerable to takeovers via a CNAME to unclaimed domain. I have claimed this domain and redirected them to a blank page to prevent a bad actor from doing so in the meantime, and hosted a POC file at obscure URLs. These are the following domains I discovered and the outdated endpoints on Azure to which they point:

█████ --> ████

...and the proof-of-concept file is at the following location:

https://████████/proof.e7437329-ab61-4f22-a049-df5b3685313a.txt

I have not hosted any other file nor attempted any other vector of attack.

Impact

You're probably familiar with takeovers like this by now, but through this vulnerability, it would be possible for an attacker to obtain cookies and other sensitive information from your users via phishing, cookie hijacking, or XSS.

More info on possible attack vectors can be found at MDN: https://developer.mozilla.org/en-US/docs/Web/Security/Subdomain_takeovers

System Host(s)

████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

To confirm the issue visit:

https://████████/proof.e7437329-ab61-4f22-a049-df5b3685313a.txt

Suggested Mitigation/Remediation Actions

Remove CNAME of █████

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

Root cause

Likely a dangling CNAME record pointing to an unclaimed domain, which an attacker can register and thereby control the subdomain.

Impact

An attacker could obtain cookies and other sensitive information from users via phishing, cookie hijacking, or XSS.

What the attacker needed

Unclaimed domain pointed to by CNAME

The fix

The CNAME record for the affected subdomain should be removed.

How it was found

  1. Visit the provided proof-of-concept URL to confirm the takeover.

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 subdomain takeover happens when a website's subdomain points to an external service that is no longer in use. If an attacker can register that external service, they can control what appears on the subdomain. This can let them trick users into giving away passwords or steal information stored in cookies.

What is Subdomain takeover?

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.

More by martinvw

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.

Subdomain takeover

The lesson behind this report.

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.