Skip to content
Subdomain takeover Disclosed report Beginner

DNS Stale Record present for tokens.mozilla-releng.net might lead to takeover

A DNS CNAME record for a Mozilla subdomain pointed to an unclaimed Heroku DNS target, and the reporter was able to add that domain to their own Heroku account. An attacker could claim the domain and take over the subdomain.

Priyanshu Parihar Follow

Originally disclosed on Mozilla

  • Fixed in 2 hours
  • Paid in 7 days
  • Disclosed after 2 hours
Text
#Summary:
DNS record for tokens.mozilla-releng.net is pointing to stale record tokens.mozilla-releng.net.herokudns.com on Heroku.
On digging the DNS record for the domain, it returns a HEROKUDNS CNAME set, which is leading to nowhere and is not claimed on the heroku portal.

I'm also able to add the domain on my Heroku portal, which means that the domain is not added to any other Heroku account. (refer to attachment mozilla.png)

#Impact
The following stale record should be removed ASAP, as these are stale records that do not point to anywhere and should be removed before any attacker takes advantage of the following stale records, and adds the domain to their Heroku Portal which will in turn lead might lead to Subdomain Takeover, and the attacker will be able to claim the domain.

The original report as published on Mozilla's Bugzilla, by Priyanshu Parihar. 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

Root cause

Likely a dangling DNS CNAME record left behind after the Heroku app was removed or renamed, without cleaning up the DNS entry.

Impact

An attacker could claim the domain on Heroku and potentially take over the subdomain, though the report only states this as a possibility.

What the attacker needed

A free Heroku account; knowledge of the dangling DNS record

The fix

The stale DNS record should be removed.

How it was found

  1. Look up the DNS record for the subdomain and see it is a CNAME to a Heroku DNS target.
  2. Check that the target does not resolve to any active Heroku app.
  3. Add the same domain in a personal Heroku account and observe that it is accepted, showing it is unclaimed.

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's DNS record pointed to a hosting service (Heroku) that no longer had that name registered. Because the name was free, anyone with a Heroku account could register it and serve their own content under the Mozilla subdomain. This is called a subdomain takeover.

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 Priyanshu Parihar

View all

1 more disclosed report, best first.

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.