A Novel Approach to Subdomain Takeover
The post describes a technique for finding subdomain takeover vulnerabilities by identifying third-party services that use a catchall domain for custom CNAMEs, then querying DNS data to find lapsed accounts. An attacker could register a lapsed account and potentially execute script or host content on the victim's subdomain.
## A Novel Approach to Subdomain Takeover
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 root cause is that the third-party service allows anyone to register a custom domain mapping without verifying ownership of the original domain, combined with organisations leaving dangling CNAME records after cancelling their accounts.
Impact
An attacker could potentially execute script on the victim's subdomain, request sensitive information from users, or harm the brand, depending on the service.
What the attacker needed
A third-party service with a catchall domain; access to DNS data (e.g., SecurityTrails); a lapsed account on the service; ability to register on the service
How it was found
- Find a third-party service that uses a catchall domain for custom CNAMEs.
- Use SecurityTrails to list all CNAMEs pointing to that catchall domain.
- Identify lapsed accounts by checking which hostnames no longer resolve to an active service.
- Register an account on the service and claim the lapsed subdomain.
- Explore what can be hosted or executed on the subdomain to assess impact.
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 takeover happens when a company points a part of its website (like careers.example.com) to an external service, but later stops using that service without removing the DNS record. If an attacker can claim that same name on the external service, they can control what appears on the company's subdomain. This post suggests finding such services by looking for ones that use a single shared address for all customers, then searching public DNS records for companies that still point to 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.