Mining Takeovers for Fun and Profit
The article describes a method to find domains vulnerable to DNS takeover by identifying lame delegations, where a domain's NS records point to a provider that no longer hosts the zone. An attacker could register the zone at that provider and control all DNS records, enabling phishing or email interception.
Published on fireshellsecurity.team
This article describes an experiment aimed at finding domains likely vulnerable to DNS takeover, a well-known technique that can be used to steal decomissioned, but active domains. In this experiment I will show how I was able to find with little effort more than 200 domains that could be theoretically taken over…
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 registrars leave stale NS records (lame delegations) pointing to DNS providers that no longer host the zone, and those providers allow anyone to register the zone name.
Impact
An attacker could take over vulnerable domains and create arbitrary DNS records, such as subdomains for phishing or MX records to intercept email; the article does not confirm actual exploitation, only that the domains were likely vulnerable.
What the attacker needed
Access to reverse NS lookup data; ability to create account at DNS provider; domain has lame delegation
The fix
Registrars should continuously check for and remove lame delegations, and DNS providers should segregate nameservers or avoid assigning zones that have lame delegations to their nameservers.
How it was found
- Extract nameservers of vulnerable providers from the can-i-take-over-dns repository.
- Use SecurityTrails reverse NS lookup to find domains pointing to those nameservers.
- Query each domain for SOA records and filter for SERVFAIL or REFUSED responses.
- Validate the nameservers of the filtered domains to confirm they match the vulnerable set.
- Manually check a sample by logging into the provider to see if the zone is available for registration.
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 DNS takeover happens when a domain's registration still points to a DNS provider that no longer hosts the domain's zone. If an attacker can create a new account at that provider and claim the same zone name, they gain full control over the domain's DNS records, letting them redirect traffic or intercept email.
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.