How I Found a Subdomain Takeover Bug and Earned a $500 Bounty
A subdomain redirected to an external domain that was available for purchase, allowing an attacker to claim it and control the subdomain. The attacker could then use the subdomain for phishing or serving malware.
Recently, I discovered a subdomain takeover vulnerability on a website, reported it, and earned a $500 bounty. Here’s how I found the bug:
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
Impact
An attacker could take control of the subdomain and use it for phishing or serving malware.
What the attacker needed
Subdomain points to an expired external service; external domain is available for registration
The fix
The subdomain should be removed or repointed to a service the organisation controls.
How it was found
- Gather subdomains using Subfinder.
- Scan the discovered subdomains for open ports.
- Find a subdomain with port 33703 open.
- Visit the subdomain on that port and observe a redirect to an external website.
- Check the external domain and find it is available for purchase.
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's address, like blog.example.com. If that subdomain points to an outside service that has expired, anyone can buy that service and take over the subdomain. This is called a subdomain takeover, and it lets an attacker pretend to be the real website.
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.