Sub domain take over in gratipay.com
A subdomain of gratipay.com pointed to a Heroku DNS endpoint that was not registered on Heroku, leaving it open to takeover. An attacker could claim that Heroku name and serve content under the gratipay.com subdomain.
- Disclosed after 32 hours
Summary
Sub domain take over in gratipay.com
Description
I scanned gratipay.com using knockpy to find the sub domains. I found one subdomain 'www.gratipay.com.herokudns.com'. But this sub domain is not registered in heroku. An attacker can buy this sub domain from heroku.
Browsers Verified In
- Firefox
- Chrome
Steps To Reproduce
- use the 'knockpy gratipay.com' command in knockpy to find sub domains . You will get one domain like 'www.gratipay.com.herokudns.com'.
- Test this domain in browser. Then you will get error message from heroku. Please refer attached screen shot for more clarity.
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 was never claimed on Heroku, allowing anyone to register it.
Impact
An attacker could buy the unregistered Heroku name and serve content under the gratipay.com subdomain.
What the attacker needed
Attacker can register the Heroku name
How it was found
- Run knockpy against gratipay.com to enumerate subdomains.
- Note the subdomain that resolves to a Heroku DNS name.
- Open that subdomain in a browser and observe the Heroku error page.
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 name like shop.example.com that belongs to the main site. Here one such name was set up to point at a hosting service, Heroku, but nobody had actually claimed that name on Heroku. Anyone who signs up for that name on Heroku could then control what appears at the gratipay.com address, which can be used to trick users.
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.