Skip to content
Access control Disclosed report Beginner

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.

simplyrishabh Follow

Originally disclosed on HackerOne

Critical View original
  • 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

  1. Open ██████ and register for web app which is under market place. I have used ██████ (See: ████)

  2. After registering, go to Custom Domains which will be available under settings. (See: ████)

  3. In here, add custom domain i have used █████████ (See: █████)

  4. After that upload any PoC you want to upload. I have used ████ which has my PoC. (See: ███████)

#Suggested Mitigation/Remediation Actions

  1. Remove the dangling CNAME record for █████

  2. 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:

  1. Malware distribution
  2. Phishing / Spear phishing
  3. XSS

The original report as published on HackerOne, by simplyrishabh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open the third-party marketplace and register for a web app.
  2. Go to Custom Domains under settings.
  3. Add the affected subdomain as a custom domain.
  4. 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.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.