Skip to content
Subdomain takeover Disclosed report Beginner

AWS subdomain takeover of www.███████

A DNS record for a subdomain pointed to an unclaimed AWS bucket, allowing the reporter to register the bucket and serve content on that subdomain. An attacker could use this to host phishing pages, steal cookies, or bypass security policies tied to the domain.

al-madjus Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 49 days
  • Disclosed after 55 days

Description: The AWS bucket hosted on www.████████ was vulnerable to a subdomain takeover. It has a DNS record pointing to an unclaimed bucket that I was able to register and serve a PoC on.

References

Output of dig:

;; QUESTION SECTION:
;www.███████.		IN	A

;; ANSWER SECTION:
www.████.	1833	IN	CNAME	██████████.
███. 60 IN	A	███████
█████. 60 IN	A	███
█████████. 60 IN	A	████████
█████. 60 IN	A	███

;; AUTHORITY SECTION:
█████. 1831 IN	NS	████.
███. 1831 IN	NS	█████████.
███████. 1831 IN	NS	██████.
██████. 1831 IN	NS	██████████.

;; ADDITIONAL SECTION:
█████████.	151098	IN	A	████
████.	153636	IN	A	████████
█████.	132552	IN	A	█████
███████. 6009	IN	A	███
████.	56631	IN	AAAA	███

Impact

The impact for a subdomain takeover can be varied and wide: potentially steal cookies, bypass CSP and CORS policies, bypass domain whitelisting for SSRF, spy on legitimate requests sent to that domain, phising vector, etc.

System Host(s)

www.█████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Go to https://www.███████/█████████████████ which is the PoC I have hosted.

Suggested Mitigation/Remediation Actions

Please remove all dangling DNS records if they are not needed, or claim the buckets if they are.

The original report as published on HackerOne, by al-madjus. 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 steal cookies, bypass CSP and CORS policies, bypass domain whitelisting for SSRF, spy on legitimate requests, or conduct phishing.

What the attacker needed

DNS record points to unclaimed bucket; Attacker can register the bucket

The fix

Remove dangling DNS records if they are not needed, or claim the buckets if they are.

How it was found

  1. Check the DNS record for the subdomain and find it points to an AWS bucket.
  2. Register the unclaimed bucket.
  3. Host a proof-of-concept page on the bucket.
  4. Visit the subdomain to confirm the PoC is served.

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 points to a cloud service (like an AWS bucket) that no longer exists or is not owned by anyone. If someone else can claim that service, they can control what appears at that address. This can let them trick users or bypass security rules that trust the original 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 al-madjus

View all

3 more disclosed reports, best first.

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.