Skip to content
Subdomain takeover Disclosed report Intermediate

Subdomain Takeover due to ████████ NS records at us-east4.37signals.com

A subdomain of the target organisation pointed to an unclaimed DNS name server zone, which the researcher was able to claim. An attacker could host arbitrary content on the subdomain, enabling cookie theft, stored cross-site scripting, phishing, and brand damage.

nagli Follow

Originally disclosed on HackerOne

Medium 6.1 View original
  • Triaged in 5 hours
  • Fixed in 6 hours
  • Paid in 5 hours
  • Disclosed after 11 hours

Description

Hi! I have discovered that us-east4.37signals.com was pointing to an unclaimed ████ NS zone and I've managed to claim it in my account.

##POC

http://nagli.us-east4.37signals.com/takeover.html

Screen_Shot_2021-09-17_at_13.49.59.png
Screen_Shot_2021-09-17_at_13.49.59.png From the original on HackerOne

Remediation

Make sure to configure the DNS records under us-east4.37signals.com

Best regards, @ nagli

Impact

Subdomain takeovers can be used for Account takeovers (cookies set to .█████████ will be shared with this subdomain and can be obtained) Stored XSS (arbitrary javascript code can be executed in a users browser) Phishing Hosting malicious content

Since you cannot control the content hosted on the site, your brand is at risk of being damaged. Additionally, the vulnerabilities in these sites, such as XSS, RCE, etc could put your sites/users at risk of attack, since they would occur on your domain.

The original report as published on HackerOne, by nagli. 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 dangling DNS delegation: the subdomain's NS records pointed to a name server zone that was no longer registered or controlled by the organisation, allowing anyone to claim it.

Impact

An attacker could host arbitrary content on the organisation's subdomain, which could lead to account takeovers via shared cookies, stored XSS, phishing, and brand damage.

What the attacker needed

Unclaimed NS zone; ability to register the zone

The fix

The DNS records under the subdomain should be configured correctly, removing the dangling NS delegation.

How it was found

  1. Discover that the subdomain's NS records point to an unclaimed zone.
  2. Claim the unclaimed NS zone in the researcher's own account.
  3. Host a proof-of-concept page on the subdomain to demonstrate control.

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.

Every website name is looked up in a directory called DNS, which says which server answers for it. Here, one of the organisation's subdomains was set to use a directory service that nobody had registered, so anyone could register it and take control of that subdomain. That let the researcher put their own page on the organisation's domain, which could be used to trick users or steal their cookies.

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.

More by nagli

View all

33 more disclosed reports, best first.

More from Basecamp

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.