Simple Subdomain Takeover
A subdomain had a dangling CNAME record pointing to an unused Netlify site, allowing an attacker to claim that site and serve their own content on the subdomain. The author demonstrated this by hosting a proof-of-concept site on Netlify and successfully taking over the subdomain.
infosecwriteups.com
Published on infosecwriteups.com
Below are the steps that led to a successful subdomain takeover; BTW this was just the random target I felt to check out and they have no Bug Bounty program or a RVDP.
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 a dangling CNAME record pointing to a Netlify site that was no longer claimed by the organisation.
Impact
An attacker could host their own content on the subdomain, which could be used for phishing, malware distribution, or defacement.
What the attacker needed
Subdomain with dangling CNAME; external service allows claiming
How it was found
- Enumerate subdomains of the target domain.
- Check DNS records of each subdomain for misconfigurations.
- Notice a CNAME record pointing to an external service and a 'Site not found' error.
- Host a proof-of-concept site on the external service to claim the subdomain.
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 part of a website address, like blog.example.com. A CNAME record is a DNS setting that points one name to another. If that other name is no longer controlled by the site owner, an attacker can register it and take over the subdomain.
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.