Subdomain Takeover via an Abandoned CNAME Record
A development subdomain had a CNAME record pointing to a third-party PaaS provider where the corresponding app had been deleted, leaving the subdomain unclaimed. An attacker could register that app and serve content such as phishing pages on the organisation's legitimate domain.
medium.com
Published on medium.com
Subdomain takeover is a vulnerability where an organization’s DNS record, most commonly a CNAME, points to a third-party service, like a cloud provider or SaaS platform, that is no longer in use. Because the DNS record remains active but the target service is decommissioned, an attacker can register or claim that…
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 CNAME record was left in place after the third-party PaaS project it pointed to was deleted, so the target hostname became claimable by anyone.
Impact
An attacker could host phishing content or malware on the trusted subdomain, potentially stealing credentials or bypassing security controls that trust the parent domain.
What the attacker needed
Public bug bounty program scope; no account needed for verification
The fix
The CNAME record was removed from the DNS zone, and the report was marked resolved.
How it was found
- Enumerate subdomains with passive tools and combine the results.
- Probe the subdomains for live HTTP services and note non-responsive ones.
- Query the DNS for a CNAME record on the suspicious subdomain.
- Visit the subdomain in a browser and observe the third-party provider's 'Application Not Found' error page.
- Check the provider's documentation to confirm that unclaimed custom domains can be taken over by any user.
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 says 'this name is an alias for another name'. If the other name belongs to a service you no longer use, anyone who signs up for that service can claim it and control what appears on your subdomain. Here, a forgotten alias let someone else potentially host fake login pages on a real company address.
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.