Skip to content
Subdomain takeover Write-up Beginner

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.

D2Cy Follow

Published on medium.com

Recently, I discovered a subdomain takeover vulnerability on a website, reported it, and earned a $500 bounty. Here’s how I found the bug:

Devansh Doshi, on medium.com

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

  1. Gather subdomains using Subfinder.
  2. Scan the discovered subdomains for open ports.
  3. Find a subdomain with port 33703 open.
  4. Visit the subdomain on that port and observe a redirect to an external website.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.