Skip to content
Subdomain takeover Disclosed report Intermediate CVE-2017-14389

Subdomain Takeover Via via Dangling NS records on Amazon Route 53 http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io

The domain's name server records pointed to Amazon Route 53 but had been deleted, allowing the researcher to register a matching zone and take full control of the domain and all its DNS records. This enabled creating arbitrary subdomains, sending and receiving email at the domain, and potentially accessing services that rely on email-based authentication.

todayisnew Follow

Originally disclosed on HackerOne

Bounty$250 Medium 6.4 View original
  • Triaged in 24 days
  • Fixed in 10 months
  • Paid in 23 days
  • Disclosed after 12 months

Good day, I truly hope it treats you great on your side of the screen :)

I have found that your website http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io is pointed via Name Server records to AWS route 53.

These name server records have been deleted, I was able to create a matching zone file, and takeover full control of the domain, and all DNS records.

It is possible to create any subdomain, MX records, A, AAAA, txt, PTR any records to control the domain.

Please let me know any subdomain I can create if needed to show impact, I have used test.yourdomain to show the risk here.

I am able to make an email address at your domain and send and receive responses. This allows access to admin panels that are secured by needing an email address at your domain.takeover. Google Docs, Slack Chats, anywhere the authentication needed is an email address at your domain is now accessible with this risk.

This also allows access to the postmaster account for the subdomain, which will allow me to whitelist SSL issuing aliases via email validation:

https://support.dnsimple.com/articles/ssl-certificates-email-validation/#requirements https://www.digicert.com/ssl-support/validation/not-receiving-dcv-emails.htm

Please see my POC (Pug of Concept) http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io

POC Video: https://web.archive.org/web/20191125154616/http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/

Support for High Impact Rating: (7.5)

https://nvd.nist.gov/vuln/detail/CVE-2017-14389

Attack Vector (AV): Network Attack Complexity (AC): Low Privileges Required (PR): None User Interaction (UI): None Scope (S): Unchanged Confidentiality (C): None Integrity (I): High Availability (A): None

Please verify your dns settings have been updated lag for domain propagation can take place. https://dnschecker.org/#A/api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io

Options How to fix:

  1. Remove the Name Server records that point to Name Servers you do not control.

  2. Ask me to remove my registered Name Servers on AWS Route 53 and you can re register yours :)

May you be well on your side of the screen :)

-Eric

Impact

Impact:

Cyber attackers can launch a phishing campaign leveraging your established (soon to be impacted) brand reputation.

The victim has no way of telling, whether the content is served by the domain owner or the cyber attacker.

Attackers can also chain higher severity attacks to this. Many applications expose session cookies to a wildcard domain (*.example.com), so any subdomain can access them. An attacker can take a forgotten subdomain, trick the user to visit it, and extract cookies (even those with secure flag). This can be seen as an advanced version of XSS.

The original report as published on HackerOne, by todayisnew. 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

Impact

An attacker could host phishing content on the trusted domain, send and receive email as the domain, and potentially access services that authenticate via email at that domain, though the report does not demonstrate actual cookie theft or account takeover.

What the attacker needed

None

The fix

The domain owner should remove the dangling NS records that point to name servers they do not control, or reclaim the Route 53 hosted zone.

How it was found

  1. Observe that the domain's NS records point to AWS Route 53.
  2. Notice that the corresponding Route 53 hosted zone has been deleted.
  3. Create a new Route 53 hosted zone with the same name and matching NS records.
  4. Verify control by creating a test subdomain and receiving email at the domain.

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 domain name is looked up using name servers, which are like phone books that tell the internet where to find a website. If those name server records are deleted but still referenced, someone else can claim them and control the domain. Here, the researcher did exactly that, gaining the ability to create any subdomain and email address under the affected domain.

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 todayisnew

View all

12 more disclosed reports, best first.

More from Kubernetes

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.