Skip to content
Subdomain takeover Write-up Beginner

How I got a $500 reward for finding an unacclaimed bucket on GitHub

A company's GitHub repository contained a reference to an S3 bucket that the company had not claimed, leaving it open to takeover by anyone. An attacker could register that bucket name and serve their own content through the company's assets.

andre.pontes7 Follow

Published on medium.com

To my surprise I managed to find an unacclaimed bucket, in a github repository of one of these companies, in the <img src= tag, I wrote the report and sent it as quickly as possible, with this report, I managed to receive a reward of $500 in USDT.

André Pontes, 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 the bucket name was referenced in public source code but never registered by the organisation, so the name remained available for anyone to claim.

Impact

An attacker could claim the unclaimed bucket name and potentially serve their own content in place of the company's, though the text does not show this being exploited.

What the attacker needed

Bucket name exposed in public code; bucket name not yet registered

How it was found

  1. Search GitHub code within the scope of bug bounty programs for bucket references.
  2. Identify a bucket name that the company has not claimed.
  3. Report the finding to the program.

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.

Many websites store files such as images in cloud storage buckets, and each bucket has a unique name. If a company mentions a bucket name in its public code but never actually creates that bucket, anyone else can create it under the same name. That lets an outsider control content that the company's site or apps may load.

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.