Subdomain takeover
A DNS CNAME record for a subdomain pointed to an unused third-party service, allowing an attacker to claim that service and serve content from the organisation's domain. The attacker demonstrated this by hosting a fake login form on the taken-over subdomain.
Originally disclosed on Mozilla
- Fixed in 3 hours
- Paid in 3 hours
- Disclosed after 3 hours
Created attachment 8911811
taskcluster-subdomain-takeover.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Steps to reproduce:
Due to your DNS misconfiguration, I was able to completely takeover one of your subdomains.
cors-proxy.taskcluster.net
I found a CNAME that was pointing to a third-party service that was not being used. I assigned that domain to my account and now can serve content from your domain.
Actual results:
I have created a simple log in form to demonstrate how easy it would be to serve malicious content from your domain.
Expected results:
This DNS entry should be removed to mitigate this unused domain attack.
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 pointing to an unclaimed third-party service.
Impact
An attacker could serve malicious content, such as a phishing login form, from a legitimate subdomain, potentially tricking users.
What the attacker needed
DNS CNAME points to unclaimed third-party service; Attacker can register with that service
The fix
The DNS entry should be removed to mitigate the unused domain attack.
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 DNS record points to a service that is no longer in use, and someone else can register that service and take control of the subdomain. Here, the attacker found such a record, signed up for the third-party service, and was able to host their own content on the organisation's subdomain. This can be used for phishing because the URL looks legitimate.
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.