Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain Takeover using HerokoDNS [http://labs.mozilla.com/]

A forgotten CNAME record pointed a Mozilla subdomain to a Heroku DNS endpoint that was unclaimed, allowing an attacker to take over the subdomain. The attacker could then host malicious content, such as a fake Firefox download page, under the trusted Mozilla domain.

Damian Schwyrz Follow

Originally disclosed on Mozilla

  • Fixed in 40 hours
  • Paid in 6 days
  • Disclosed after 40 hours
Text
Hi, my automated tool discovered that subdomain and took it over today in the morning.
The error lies within the forgotten CNAME, whoch currently points to:

labs.mozilla.com.       60      IN      CNAME   labs.mozilla.org.
labs.mozilla.org.       3600    IN      CNAME   terrestrial-silverfish-e4aodj749otblca25l9owt3h.herokudns.com.

The second one was overtaken by me some minutes ago. I pushed a simple poc:

http://labs.mozilla.com/

Security impact:
Especially a subdomain like labs indicates a site where one may found some beta downloads - an attacker could easily create a fake download firefox website and get people to download that version (including his malware). Additionally subdomain takeovers may be leveraged to steal cookies which are scoped to the top level domain, abused for blackhat seo, ...



Best regards, Damian

The original report as published on Mozilla's Bugzilla, by Damian Schwyrz. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 a fake Firefox download page with malware on the trusted subdomain, and potentially steal cookies scoped to the top-level domain or abuse it for blackhat SEO.

What the attacker needed

None

How it was found

  1. Discover the subdomain with an automated tool.
  2. Identify the CNAME chain ending at a Heroku DNS endpoint.
  3. Claim the Heroku endpoint to take over the subdomain.
  4. Host a proof-of-concept page on the 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 takeover happens when a website's subdomain points to an external service that is no longer controlled by the original owner. An attacker can claim that service and serve their own content on the trusted subdomain. Here, a forgotten DNS record let the attacker take over a Mozilla subdomain and potentially trick users into downloading malware.

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 Mozilla

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.