Skip to content
Subdomain takeover Write-up Beginner

How I Earned $50 for a Subdomain That Almost Got Taken Over

A subdomain's DNS record pointed to an IP address on a Vultr trial that was due to expire, meaning the IP could be reassigned to someone else. An attacker who obtained that IP could then serve malicious content under the trusted subdomain, though the text says the bug was not yet exploitable.

sangpalisha Follow

Published on medium.com

Who needs sleep at 12 AM when you can find a ‘non-exploitable’ bug and somehow walk away with a bounty anyway?

Isha Sangpal, 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

Root cause

Likely a dangling DNS record left pointing at an IP address on temporary cloud infrastructure that was due to be released.

Impact

If the IP were reassigned, an attacker could take over the subdomain and use the trusted name for phishing, cookie theft or script injection; the text notes it could not be exploited yet.

What the attacker needed

The cloud IP is released and reassigned; the DNS record still points to that IP

The fix

The company removed the DNS record immediately, and the text says the Vultr trial was set to expire soon.

How it was found

  1. Found the subdomain during reconnaissance.
  2. Used dig to see it resolved to a Vultr IP.
  3. Checked the IP with nmap, curl, Shodan and the Wayback Machine and found nothing responding.
  4. Reported the dangling record to the security team.

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 smaller name under a company's main domain, like blog.example.com. Its DNS record tells browsers which server to contact. Here that server was a rented machine whose rental was ending, so someone else could rent the same address and answer for the subdomain.

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.

More by sangpalisha

View all

3 more disclosed reports, best first.

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.