Skip to content
Subdomain takeover Write-up Beginner

S3 Subdomain Takeover!!!

Two subdomains of a large bug bounty program pointed at S3 buckets that no longer existed, so they were vulnerable to subdomain takeover. The author claimed both buckets, and because the two subdomains were linked, taking over one also took over the other.

Sushil Choudhary Follow

Published on medium.com

I am looking for a program to hunt on HackerOne. I came across the largest program in my private program that launched in 2018.

Sushil Choudhary, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely dangling DNS records still pointed at S3 buckets that had been deleted, letting anyone who recreated the buckets control the subdomains.

Impact

An attacker could serve their own content on two trusted subdomains of the program, which could be used for phishing or other abuse.

What the attacker needed

Subdomain enumeration; takeover scanner; ability to create S3 buckets

How it was found

  1. Enumerate subdomains across the program's wildcard domains.
  2. Run a subdomain takeover scanner over the collected list.
  3. Review the scanner output for S3-related findings.
  4. Recreate the missing S3 buckets to claim the subdomains.

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 write-up has not been written yet. The Original tab links to the source.

A subdomain takeover happens when a site's subdomain points to an outside service, such as cloud storage, that has since been deleted. Anyone who recreates that service with the same name can serve their own content on the trusted subdomain. Here the author found two such subdomains pointing at missing S3 storage buckets and registered the buckets himself.

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 Sushil Choudhary

View all

2 more disclosed reports, best first.

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.