How I Found a Subdomain Takeover via BetterUptime
A subdomain had a dangling CNAME record pointing to a Better Uptime status page that was no longer active, allowing an attacker to claim the subdomain by registering it on the third-party service. The attacker could then host content on the organisation's subdomain.
medium.com
Published on medium.com
In this write-up, I will explain how I discovered a subdomain takeover vulnerability caused by an expired third-party service with a dangling CNAME record. This simple misconfiguration allowed me to claim control over a subdomain.
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
Impact
An attacker could claim the subdomain and serve content under the organisation's domain, which could be used for phishing or reputational damage.
What the attacker needed
Dangling CNAME to a claimable service; account on the third-party service
The fix
The issue was fixed within 30 minutes, likely by removing the dangling CNAME record.
How it was found
- Enumerate subdomains of the target domain.
- Open each subdomain in a browser and look for errors.
- Check the DNS configuration of a failing subdomain and find a CNAME to a third-party service.
- Create an account on that third-party service and add the subdomain as a custom domain.
- Verify that the service confirms the CNAME is configured correctly, completing 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 write-up has not been written yet. The Original tab links to the source.
A subdomain is a prefix like 'status' added to a main domain. A CNAME record is a DNS entry that points one name to another. Here, the subdomain pointed to an external service that had been abandoned, so anyone who signed up for that service could take control of 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.