Skip to content
Subdomain takeover Disclosed report Beginner

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.

anshad Follow

Originally disclosed on HackerOne

Informational View original
  • 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

  1. use the 'knockpy gratipay.com' command in knockpy to find sub domains . You will get one domain like 'www.gratipay.com.herokudns.com'.
  2. Test this domain in browser. Then you will get error message from heroku. Please refer attached screen shot for more clarity.

The original report as published on HackerOne, by anshad. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Run knockpy against gratipay.com to enumerate subdomains.
  2. Note the subdomain that resolves to a Heroku DNS name.
  3. 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.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.