HexBrain

Udemy · Report #368119

[engineering.udemy.com] - Subdomain Takeover (ghost.io)

Validstatus
lowseverity
33upvotes
27 Jun 2018disclosed

How it was found

Hi Security Team,

Found that DNS record of engineering.udemy.com domain was pointing to inactive ghost.io instance. So when we visit https://engineering.udemy.com we will be notified that site doesn't exist.

{F310092}

$ host engineering.udemy.com
engineering.udemy.com is an alias for udemy-engineering-blog.ghost.io.
udemy-engineering-blog.ghost.io has address 141.101.114.35
udemy-engineering-blog.ghost.io has address 141.101.115.35
udemy-engineering-blog.ghost.io has address 190.93.244.35
udemy-engineering-blog.ghost.io has address 190.93.245.35
udemy-engineering-blog.ghost.io has address 190.93.246.35

So I've registered PRO account for 20$/month on ghost.org and created publication with the name udemy-engineering-blog, as a next step I configured custom DNS record for my publication.

{F310093}

CNAME record was already configured, so I could successfully pass validation and even have valid SSL certificate and now can serve content on behalf of engineering.udemy.com

https://engineering.udemy.com/

{F310094}

Impact

Attacker is able to serve any content on behalf of engineering.udemy.com domain

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original