Skip to content
Subdomain takeover Disclosed report Intermediate

EC2 subdomain takeover at http://████████/

A dangling DNS A record pointed to an EC2 instance that no longer existed, allowing the reporter to claim that instance and host content on the subdomain. An attacker could host arbitrary content on the subdomain, potentially bypassing web protections like CORS or redirecting users to malicious pages.

dreyand_ Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 1 hour
  • Fixed in 6 months
  • Disclosed after 6 months

There is a dangling DNS A record that points to an EC2 instance that no longer exists, I was able to claim the EC2 instance and host content on http://███████/.

Steps To Reproduce:

  1. Visit http://█████████/██████████.html and view the PoC: ██████

Suggested Remediation Steps

Remove the A record pointing to the current ec2 instance.

Impact

Hosting content on http://█████/ and potentionally fully bypassing web protections like CORS (in cases of ████████) or redirecting users to malicious pages.

Impact

Hosting content on http://██████/ and potentionally fully bypassing web protections like CORS (in cases of ██████████) or redirecting users to malicious pages,

System Host(s)

██████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Visit http://██████████/█████.html and view the PoC: █████

Suggested Mitigation/Remediation Actions

Remove the A record pointing to the current ec2 instance.

The original report as published on HackerOne, by dreyand_. 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 A record was left pointing to an EC2 instance that no longer existed, allowing the instance to be claimed.

Impact

An attacker could host arbitrary content on the subdomain, potentially bypassing web protections like CORS or redirecting users to malicious pages.

What the attacker needed

Dangling DNS A record to a terminated EC2 instance; ability to claim the same EC2 IP address

The fix

The A record pointing to the EC2 instance should be removed.

How it was found

  1. Visit the provided URL to view the proof-of-concept page.

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 takeover happens when a website's address (like shop.example.com) points to a service that has been shut down. If someone else can sign up for that same service and claim the old address, they can put their own content on the website's subdomain. Here, the address pointed to an Amazon cloud server that was deleted, and the reporter was able to create a new server at the same address.

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

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.