Subdomain Takeover of releases.it-cdn.webops.mozilla.org
A Mozilla subdomain had a CNAME record pointing to CloudFront without an associated distribution, allowing anyone to claim it. An attacker could host malicious content on the trusted domain and potentially steal cookies scoped to the parent domain.
- Fixed in 24 hours
- Paid in 8 days
- Disclosed after 24 hours
Created attachment 8957950
screenshot of affected domain
I identified a subdomain of mozilla.org that is vulnerable to a subdomain takeover attack.
releases.it-cdn.webops.mozilla.org
This domain has a cname record pointing to cloudfront.net, but does not have a CloudFront distribution associated with it. I was able to associate the domain with a CloudFront distribution I created so that visiting releases.it-cdn.webops.mozilla.org will now display my proof of concept page. This also prevents a malicious attacker from abusing this domain.
An attacker could have used this vulnerability to direct unsuspecting users to malicious content the attacker created. It could also be leveraged to steal data linked to mozilla.org, such as cookies scoped to the parent domain.
You can view the page by visiting:
http://releases.it-cdn.webops.mozilla.org
To fix the issue, simply remove the cname record.
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 direct users to malicious content and potentially steal cookies scoped to the parent domain.
What the attacker needed
Control of a CloudFront distribution
The fix
The CNAME record should be removed to fix the issue.
How it was found
- Identify a Mozilla subdomain with a CNAME record to cloudfront.net.
- Notice that no CloudFront distribution is associated with the domain.
- Create a CloudFront distribution and associate the domain with it.
- Visit the subdomain to see the proof-of-concept page.
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 is a prefix like 'releases' added to a main domain. Here, that subdomain was set up to point to a cloud service (CloudFront) but no one had claimed the cloud space, so anyone could take it over and serve their own pages under Mozilla's name.
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.