DNS Stale Record present for tokens.testing.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 on Heroku and take over the subdomain.
Originally disclosed on Mozilla
- Fixed in 3 hours
- Paid in 7 days
- Disclosed after 3 hours
#Summary:
DNS record for tokens.testing.mozilla-releng.net is pointing to stale record tokens.testing.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.
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 or domain was removed, 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 says this 'might' happen.
What the attacker needed
A Heroku account; knowledge of the subdomain
The fix
The stale DNS record should be removed.
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 an owner for that name. Because the name was free, anyone with a Heroku account could register it and serve their own content under the Mozilla subdomain, which 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.