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.
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?
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
- Found the subdomain during reconnaissance.
- Used dig to see it resolved to a Vultr IP.
- Checked the IP with nmap, curl, Shodan and the Wayback Machine and found nothing responding.
- 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.