Sub Domain Takeover
A Gratipay subdomain pointed to Heroku but had no Heroku app associated with it, allowing an attacker to claim the subdomain by creating a Heroku app and adding the domain. The attacker could then serve their own content on that subdomain.
- Fixed in 4 days
- Disclosed after 6 months
One of Gratipay's sub domains points to Heroku with no app created.
Description
Gratipay's sub domain http://www.gratipay.com.herokudns.com/ points to Heroku but is not in use.
Steps To Reproduce
###Details
-
Upon realization of vulnerability, installed and created a Heroku dependencies and application.
-
Added http://www.gratipay.com.herokudns.com/ to my list of domains through Heroku CLI.
heroku domains:add www.gratipay.com.herokudns.com
After verifying my Heroku account this was easy to point the sub domain to my application.
- Uploaded my application with text "B3nac sub domain takeover POC." and refreshed the domain to find it pointed to my application successfully.
Fix
If the domain is not in use, then it is recommended to point the dns entry away from the third party program.
Supporting Material/References:
- I've attached the uploaded takeover python application/website screenshot.
Attachments


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 pointing to a Heroku hostname that no longer had an associated app, allowing anyone to claim it.
Impact
An attacker could host their own content on a Gratipay subdomain.
What the attacker needed
A Heroku account; knowledge of the dangling subdomain
The fix
The DNS entry should be removed or pointed away from the third-party service if the subdomain is not in use.
How it was found
- Install and create a Heroku application.
- Add the target subdomain to the Heroku app using the Heroku CLI.
- Upload a proof-of-concept application to the Heroku app.
- Refresh the subdomain to confirm it now serves the attacker's content.
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.
When a website uses a third-party service like Heroku, it often points a subdomain to that service using a DNS record. If the service no longer has an app tied to that subdomain, anyone can create a new app on the service and claim the subdomain, showing their own content under the trusted domain name. This is called a subdomain takeover.
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.