Skip to content
Misconfiguration Write-up Beginner

The 403 That Wasn’t: A 30-Minute S3 Takeover

An S3 bucket used by an e-commerce platform's Order Management System allowed anonymous write access despite returning a 403 error on read attempts. An attacker could upload arbitrary files to the bucket, potentially hosting malware or overwriting assets.

medium.com

Published on medium.com

I was shopping for a t-shirt. My proxy was quietly running.

SRCK, 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 S3 bucket policy granted write permission to any principal (wildcard) while blocking read/list access, and the bucket URL was exposed in client-side JavaScript.

Impact

An attacker could host malware or phishing pages on the trusted domain, overwrite existing assets to inject malicious code, or cause financial loss through storage abuse.

What the attacker needed

None

The fix

Enable Block Public Access at the bucket level to override any permissive policy statements.

How it was found

  1. Find the S3 bucket URL in a minified JavaScript file.
  2. Visit the bucket URL and observe a 403 Access Denied error.
  3. Use the AWS CLI with the --no-sign-request flag to upload a test file to the bucket.
  4. Confirm the uploaded file is publicly accessible by visiting its URL.

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.

The website's code contained a link to an Amazon S3 storage bucket. Visiting the bucket showed 'Access Denied', but the bucket still allowed anyone to upload files without logging in. This means an attacker could put harmful files on the company's own storage.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.