Fastest Subdomain Take Over & DNS Misconfiguration Hunt.
A DNS zone transfer was possible on the target domain, exposing all of its DNS records, and two subdomains pointed at hosts that were no longer claimed, so an attacker could register them and serve content under the organisation's name. The author reported both issues and was credited as a responsible researcher.
Hey Everyone, This is my third writeup this month and today I'll be writing about how I was able to take over a few subdomains of an organization as well as a DNS zone transfer with the help of a simple passive test.
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 DNS servers allowed zone transfers from arbitrary clients, and stale CNAME records still pointed at third-party services that no longer held the subdomains.
Impact
An attacker could register the dangling subdomains and use them for malicious purposes under the organisation's domain, and could read the full DNS record set through the zone transfer.
What the attacker needed
No account needed; target uses third-party services for subdomains
How it was found
- Enumerate DNS records for the target domain with dnsenum
- Collect subdomains with several enumeration tools and merge the results into one list
- Run subzy against the merged list to find unclaimed subdomains
- Manually confirm the flagged subdomains were not registered with the primary domain
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.
Every domain name has a directory of records called DNS, which tells browsers where to send traffic. A zone transfer is a way for one DNS server to copy that whole directory to another; if it is left open to anyone, outsiders can read every record. Separately, a subdomain can point to an outside service that has since been released, letting anyone who signs up for that service take control of the name.
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.