My approach of subdomain takeover that pointing to Fastly (DNS Hi
A subdomain had a dangling CNAME record pointing to Fastly's shared edge network, but the hostname was not configured on any Fastly service, so Fastly returned an 'unknown domain' error. The author claimed the hostname in a Fastly account and served their own content on the target subdomain.
Published on hackerronin.medium.com
Hello Hackers, I’m Nishan Faiyaz, also known in the hacking community as l1ackernishan or You can call me D3M0N…. Btw I’m a security enthusiast who spends most of my time bug hunting, penetration testing and develop website’s and android apps.
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 DNS CNAME record left pointing at Fastly's shared edge after the hostname was removed from any Fastly service configuration.
Impact
An attacker could serve their own content on the organisation's subdomain, which could be used for phishing or to damage trust in the brand.
What the attacker needed
Dangling CNAME to Fastly; attacker has a Fastly account; parent domain not already on Fastly
The fix
The dangling CNAME should be removed or the hostname should be properly registered with the provider; the text says the report was resolved but does not describe the fix.
How it was found
- Enumerate subdomains and manually review DNS records for CNAME chains and provider fingerprints.
- Notice a subdomain whose CNAME points to a Fastly shared hostname.
- Open the subdomain and see a Fastly 'unknown domain' error page.
- Log in to the Fastly control panel and try to claim the hostname under Create CDN.
- Host a static page on a personal server and confirm it is served on the target 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 prefix of a domain, like shop.example.com. A CNAME is a DNS record that says 'this name is really another name', so the subdomain was pointed at a hosting provider called Fastly. If nobody has registered that name at the provider, anyone with an account there can register it and put their own page on the subdomain, which is called subdomain takeover.
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.