How I Found a Gambling Website Hosted on an Official Company Subdomain — Bug Bounty Write-up
An official subdomain of a hosting company pointed to a server that was serving a third-party online casino website, likely due to an abandoned DNS record. An attacker could use the trusted domain to host gambling content, potentially causing brand damage, regulatory issues, and phishing amplification.
Published on medium.com
Bug bounty hunting doesn’t always mean chasing complex vulnerabilities. Sometimes the most impactful findings come from methodical reconnaissance and paying attention to things that simply shouldn’t be there.
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 an abandoned DNS record that was never removed after the original server was decommissioned and repurposed.
Impact
The subdomain served gambling content under the company's trusted domain, which could cause brand damage, search engine penalties, legal exposure, and aid phishing; the text does not mention any defence that limited the issue.
What the attacker needed
None
The fix
The DNS A record for the abandoned subdomain should be removed or updated, and a process for regular DNS hygiene audits should be implemented.
How it was found
- Enumerate subdomains of the target domain using subfinder.
- Filter live hosts with httpx to identify a subdomain named 'survey' returning HTTP 200.
- Check HTTP response: it returned a default nginx page of 581 bytes.
- Check HTTPS response: it returned a full online casino website with gambling content.
- Verify IP ownership with dig and whois, confirming the IP belongs to the company's ASN.
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 company's subdomain, like survey.example.com, is supposed to point to a company-controlled server. Here, the DNS record still pointed to an old server that had been repurposed by someone else, who set up a casino site. This means visitors to the official subdomain saw gambling content, which could confuse people and damage the company's reputation.
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.