Subdomain takeover worth 200
A subdomain pointed via a CNAME record to Netlify, but the corresponding Netlify site had not been claimed. An attacker could register a Netlify account, add the subdomain as a custom domain, and take control of it.
Published on medium.com
{{media:0}}
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 subdomain's CNAME record pointed to a Netlify site that had not been claimed by any Netlify account, allowing anyone to register it.
Impact
The attacker could fully control the subdomain and host content on it, which could be used for phishing or other attacks.
What the attacker needed
A subdomain with a dangling CNAME to Netlify; a free Netlify account
The fix
The organisation should remove the dangling CNAME record or claim the subdomain on Netlify.
How it was found
- Find a subdomain that shows 'Not Found'.
- Check the subdomain's CNAME record to see which third-party service it points to.
- Register an account on that service and upload a web project.
- Add the subdomain as a custom domain and verify it.
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 subdomain is a prefix like 'blog' added to a main domain. A CNAME record is a DNS setting that points one name to another service. Here, the subdomain pointed to Netlify, a website hosting service, but nobody had claimed that name on Netlify, so anyone could sign up and claim it.
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.