Skip to content
Subdomain takeover Disclosed report Intermediate

Possible Domain Takeover on AWS Instance.

A subdomain of rocket.chat had a CNAME record pointing to an AWS Elastic Load Balancer that no longer existed, returning NXDomain. An attacker could potentially claim that load balancer name and take over the subdomain, enabling phishing.

samuelsiv Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 7 days
  • Disclosed after 7 months

The vulnerable domain possibly available for takeover is: traefik-livedemo.rocket.chat (CNAME: a0e7eaaaa82f611e9b1cc0e9ccd15f3e-557536140.us-west-2.elb.amazonaws.com). This domain, contains a record pointing to these an WS instance. When querying for any IP under the instance, I got returned an NXDomain error.

Steps to claim the instances: Log-in or register into AWS. (Region has to be set as us-west-2) Go onto the "Elastic LoadBalancer" section Click "Create Loadbalancer" Click "Application Loadbalancer" Input the name before the final dash and the numbers. (eg: a0e7eaaaa82f611e9b1cc0e9ccd15f3e ) Deploy it, and check if the numbers are the same.

It might take a few to get the right one, but with an automated script I am certainly sure that it is achievable.

Impact

The attacker might be able to takeover the domain, and gain access to the domain. An user, recognizing the domain recalling "rocket.chat" would let the user trust the page, and then, give the attacker his credentials via a phishing form.

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

The attacker might be able to take over the domain and use it for phishing, as users may trust the rocket.chat name and enter credentials.

What the attacker needed

AWS account; Region set to us-west-2; Automated script to guess name

How it was found

  1. Log in or register into AWS with region us-west-2.
  2. Go to the Elastic LoadBalancer section.
  3. Click Create Loadbalancer.
  4. Choose Application Loadbalancer.
  5. Input the name before the final dash and the numbers.
  6. Deploy it and check if the numbers are the same.

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 company's website address (like sub.example.com) can point to a cloud service. If that cloud service is deleted but the pointer remains, someone else can recreate the service with the same name and control the address. Here, the address pointed to an AWS load balancer that was gone, so an attacker might be able to claim it.

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 samuelsiv

View all

1 more disclosed report, best first.

More from Rocket.Chat

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.