Subdomain Takeover using blog.greenhouse.io pointing to Hubspot
The subdomain blog.greenhouse.io pointed to Hubspot, but the Hubspot account had expired, allowing anyone to claim the subdomain and host arbitrary content. An attacker could create a phishing login form or run JavaScript on the greenhouse.io domain.
Originally disclosed on HackerOne
- Triaged in 1 hour
- Fixed in 15 hours
- Paid in 15 hours
- Disclosed after 3 months
Hi,
Your subdomain blog.greenhouse.io is pointing to the service called Hubspot. However, your account at Hubspot has expired or has been cancelled. This basically means that anyone can claim your subdomain pointing to Hubspot and create their own site at this URL. This is EXTREMELY dangerous as whatever the attacker want can be placed on this domain. This is also a foolproof phishing attack since no one would be able to verify that this is not a legit greenhouse.io-login form.
I have temporarily claimed this domain for PoC. You should immediately remove the DNS-entry for blog.greenhouse.io pointing to Hubspot.
And since I'm able to run javascript at Hubspot, I'm able to do whatever I like on that domain. Creating a login form that would fool anyone, since it's present on a greenhouse.io domain.
$ host blog.greenhouse.io
blog.greenhouse.io is an alias for san.secure001.hubspot.com.edgekey.net.
san.secure001.hubspot.com.edgekey.net is an alias for e1395.b.akamaiedge.net.
PoC-link: http://blog.greenhouse.io/
PoC-images attached.
As you might understand, this is really bad. Foolproof phishing. XSS on greenhouse.io. Potential malware spread through a domain you - in this case - do not control. Extremely painful for the company brand.
Please make sure you're always going through your DNS-entries so no subdomains are pointing to external services you do not use.
We've written an advisory about this at Detectify: http://blog.detectify.com/post/100600514143/hostile-subdomain-takeover-using-heroku-github-desk
Where you can read more about this sort of attack.
Regards, Frans Rosén
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
Impact
An attacker could host phishing pages or malware on the trusted greenhouse.io subdomain, potentially stealing credentials or damaging the brand.
What the attacker needed
DNS record points to expired third-party service; Attacker can sign up for that service
The fix
The DNS entry for blog.greenhouse.io pointing to Hubspot should be removed.
How it was found
- Check the DNS record for blog.greenhouse.io and see it points to Hubspot.
- Notice that the Hubspot account for that subdomain has expired or been cancelled.
- Claim the subdomain on Hubspot to prove control.
- Host a page with JavaScript on the claimed 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 an external service that is no longer used, someone else can sign up for that service and take control of the subdomain, letting them host fake pages under the real company's name.
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.