Skip to content
Subdomain takeover Write-up Intermediate

Beyond Takeover AWS Bucket

The author found that some domain-hosting providers, not just Amazon S3, allow a domain to be claimed by someone who does not own it, enabling a subdomain takeover. By enumerating subdomains whose CNAME records point at those providers, an attacker could register the dangling name and serve content on the victim's subdomain.

Moosha Follow

Published on medium.com

Nowadays find S3 Bucket is something impossible but let’s think out the box Amazon is Hosting provider for domains service Right What if Its not the only Hosting provider that Vulnerable to Takeover.

Na_stark, 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: subdomains still had CNAME records pointing at hosting-provider names that were no longer registered, so anyone could claim them.

Impact

An attacker could take over a subdomain belonging to the target and control the content served there, though the text gives no further detail on what was hosted or how it was abused.

What the attacker needed

Subdomain with dangling CNAME; provider allows claiming the name; no account needed on target

The fix

The text does not describe the fix; generally the dangling DNS record should be removed or the provider name reclaimed.

How it was found

  1. Take the main domain from the programme scope and enter it into the author's script.
  2. The script lists the domain's subdomains through a domain-intelligence API.
  3. It resolves each subdomain's CNAME and flags those pointing at known hosting providers.
  4. The author visits the flagged hosting provider and tries to claim the dangling name.

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 points a subdomain at an outside service, then stops using that service without removing the pointer. Anyone who can sign up for the same name on that service can then take control of the subdomain. Here the author checked many hosting providers, not only Amazon's storage service, and found some that let a stranger claim a name still referenced by a victim's DNS.

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.

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.