Exposing a High-Risk Subdomain Takeover: How I Earned a Massive B
A subdomain pointed to a deleted AWS S3 bucket, allowing an attacker to claim the bucket and serve arbitrary content on the subdomain. The attacker could host phishing pages or malware under the trusted domain.
Published on theindiannetwork.medium.com
In the world of bug bounties, nothing feels more rewarding than uncovering a subdomain takeover vulnerability — a flaw that could lead to significant security breaches. Recently, I found and reported a subdomain takeover that earned me a substantial bug bounty payout.
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 record for the subdomain was left pointing to a cloud service (AWS S3 bucket) that had been deleted, without removing or updating the DNS entry.
Impact
An attacker could serve malicious content, redirect users to phishing sites, steal data, or distribute malware under the trusted subdomain.
What the attacker needed
Subdomain DNS points to deleted cloud service; attacker can create resource with same name
The fix
The organisation should regularly review DNS records and remove or update any that point to inactive services, and monitor for orphaned subdomains.
How it was found
- Check the DNS record for the subdomain and find it points to an S3 bucket that no longer exists.
- Create a new S3 bucket with the same name as the subdomain and make it public.
- Wait for DNS propagation (about 15 minutes) so the subdomain resolves to the new bucket.
- Access the subdomain and confirm that the attacker-controlled content is served.
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. If that subdomain points to an external service that no longer exists, anyone can sign up for that service with the same name and take control of the subdomain. This lets them show fake pages or steal information from visitors who trust the main domain.
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.