Subdomain takeover of ███
A subdomain had a dangling CNAME record pointing to an unclaimed third-party web service. The reporter registered that service name and took control of the subdomain, allowing them to serve arbitrary content.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 31 days
- Disclosed after 15 months
#Summary: The subdomain ██████ had an CNAME record pointing to an unclaimed ███████ webservice. This is a high severity security issue because an attacker can register the subdomain on ███ and therefore can own the subdomain █████████.
#Description: The dangling CNAME record of █████████ is pointing to █████.███████ which was not claimed by you. I registered a service with this name and therefore was able to takeover the subdomain. Every attacker doing this has afterwards full control over the contents served on this subdomain.
#Subdomain Affected: ██████████
#Proof Of Concept: I have uploaded a simple subdomain takeover PoC on http://███████/████████
Step-by-step Reproduction Instructions
-
Open ██████ and register for web app which is under market place. I have used ██████ (See: ████)
-
After registering, go to Custom Domains which will be available under settings. (See: ████)
-
In here, add custom domain i have used █████████ (See: █████)
-
After that upload any PoC you want to upload. I have used ████ which has my PoC. (See: ███████)
#Suggested Mitigation/Remediation Actions
-
Remove the dangling CNAME record for █████
-
Claim it back in ███████ portal after I release it
#Reference Some hackerone reports #661751 #325336
#NOTE: I have claimed the subdomain http://█████████ at the current moment to keep it safe from malicious users. Whenever you want i will release ██████.███. Afterwards you can claim it back.
Impact
Subdomain takeover is abused for several purposes:
- Malware distribution
- Phishing / Spear phishing
- XSS
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 DNS CNAME record was left pointing to a third-party service that was no longer claimed by the organisation.
Impact
An attacker could serve arbitrary content on the subdomain, which may be used for malware distribution, phishing, or cross-site scripting.
What the attacker needed
Ability to register a service on the third-party platform; Knowledge of the dangling CNAME record
The fix
The dangling CNAME record should be removed, and the service name should be claimed back after the reporter releases it.
How it was found
- Open the third-party marketplace and register for a web app.
- Go to Custom Domains under settings.
- Add the affected subdomain as a custom domain.
- Upload a proof-of-concept file to the service.
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 part of a website address, like blog.example.com. A CNAME record is a DNS setting that points one name to another. If that other name is not registered by anyone, an attacker can register it and control what appears on the subdomain.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.