Heroku Subdomain takeover - http://connect.webmakerprototypes.org/
A subdomain had a DNS record pointing to an unused Heroku app, allowing an attacker to claim that app and take over the subdomain. The attacker could then serve content on the subdomain.
Originally disclosed on Mozilla
- Fixed in 5 months
- Paid in 6 months
- Disclosed after 5 months
Created attachment 8794657
Images POC.zip
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Steps to reproduce:
Domain - http://connect.webmakerprototypes.org/
This attack vector utilizes DNS-entries pointing to Service Providers where the pointed subdomain is currently not in use. Depending on the DNS-entry configuration and which Service Provider it points to, some of these services will allow unverified users to claim these subdomains as their own.
Check your DNS-configuration for subdomains pointing to services not in use.
https://labs.detectify.com/2014/10/21/hostile-subdomain-takeover-using-herokugithubdesk-more/
Actual results:
I was able takeover the domain as there was an existing DNS record pointing to a Heroku record.
Expected results:
The CNAME record should be removed as this domain is no longer within use.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a dangling DNS record (CNAME) pointing to a Heroku app that was no longer in use, allowing anyone to claim the app name.
Impact
An attacker could take over the subdomain and serve arbitrary content, potentially phishing or damaging reputation.
What the attacker needed
DNS record points to unused service; Service allows unverified claiming
The fix
The DNS record should be removed as the domain is no longer in use.
How it was found
- Identify a subdomain with a DNS record pointing to a service provider.
- Check if the pointed service is unclaimed.
- Claim the service as an unverified user.
- Serve content on the subdomain.
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 report has not been written yet. The Original tab links to the source.
A subdomain is a part of a website address, like blog.example.com. If that subdomain points to a service (like Heroku) that no longer hosts anything, anyone can sign up for that service and claim the name, effectively taking over the subdomain. This report shows that happening.
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.