Subdomain Takeover: When Your Own Domain Becomes Your Enemy ️�
A subdomain was flagged as potentially vulnerable to S3 bucket takeover, but manual verification showed no CNAME record and TXT records prevented takeover. The authors did not actually take over the subdomain.
Picture this: It’s just another random day when I’m scrolling through LinkedIn and stumble upon a post about a company’s financial troubles — half of their online services were reportedly going offline due to unpaid dues. While most people felt sympathy for the employees, my “evil mind” (as I like to call it)…
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 a dangling DNS record pointing to an unclaimed external service, but the text does not confirm the record was actually dangling because TXT records prevented takeover.
Impact
If the takeover had succeeded, an attacker could have hosted phishing pages or malware on a trusted subdomain, but in this case TXT records and correct configurations prevented it.
What the attacker needed
Subdomain pointing to external service; external service is unclaimed; DNS record still exists
The fix
The domain owner should remove DNS records that point to external services that are no longer in use, and keep TXT records and configurations correct to prevent takeover.
How it was found
- Run subdomain enumeration with subfinder.
- Probe the subdomains with httpx-toolkit to gather CNAME, IP, title, and status code.
- Run subjack to detect potential subdomain takeovers.
- Investigate the flagged subdomain with dig for CNAME and TXT records.
- Manually verify with curl that the external service is unclaimed.
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 part of a website address, like blog.example.com. A subdomain takeover happens when that address still points to an external service (like a cloud storage bucket) that the owner no longer controls, so an attacker can claim that service and put their own content there. In this case, the tools suggested it might be possible, but the owner had set up extra DNS records that blocked the takeover.
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.