Skip to content
Subdomain takeover Disclosed report Beginner

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

A DNS record for a company subdomain pointed at a Ghost.io blog instance that no longer existed, so anyone could claim that name on the hosting service. The reporter registered the same publication name and was then able to serve their own content on the company's subdomain.

kazan71p Follow

Originally disclosed on HackerOne

  • Fixed in 7 hours
  • Paid in 8 days
  • Disclosed after 9 days

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.

Screenshot_at_Jun_18_18-39-58.png
Screenshot_at_Jun_18_18-39-58.png From the original on HackerOne
$ 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.

Screenshot_at_Jun_18_18-48-17.png
Screenshot_at_Jun_18_18-48-17.png From the original on HackerOne

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/

Screenshot_at_Jun_18_19-03-23.png
Screenshot_at_Jun_18_19-03-23.png From the original on HackerOne

Impact

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

The original report as published on HackerOne, by kazan71p. 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 left pointing at a Ghost.io publication that had been deleted, allowing anyone to re-register the same publication name.

Impact

An attacker could serve any content on the company's subdomain.

What the attacker needed

A paid Ghost.org account; the publication name is unclaimed

How it was found

  1. Resolve the subdomain and observe it is an alias to a Ghost.io publication name.
  2. Visit the subdomain and see that the site no longer exists.
  3. Register a paid Ghost.org account and create a publication with the same name.
  4. Configure the custom domain for the new publication, passing validation with a valid certificate.
  5. Serve arbitrary content on the company 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.

The reporter signed up at the same service with a paid account, took the same name, and the company's subdomain started showing the reporter's page instead.

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 by kazan71p

View all

6 more disclosed reports, best first.

More from Udemy

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.