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.
- 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.
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
- Log in or register into AWS with region us-west-2.
- Go to the Elastic LoadBalancer section.
- Click Create Loadbalancer.
- Choose Application Loadbalancer.
- Input the name before the final dash and the numbers.
- 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.