Skip to content
Subdomain takeover Write-up Beginner

Subdomain takeover via unsecured s3 bucket

An unsecured S3 bucket connected to a website allowed a subdomain takeover by uploading files.

Muhammad Khizer Javed Follow

Published on blog.securitybreached.org

Hey Guys, So This Blog is Basically About an issue i found in a web where a missing file and an Unsecured S3 Bucket connected to that website gave me a way to takeover that subdomain without a Subdomain Takeover Vulnerability, So Let’s begin So I was testing a private program when i came across a Subdomain on the…

Muhammad Khizer Javed (@khizer_javed47), on blog.securitybreached.org

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 allowed public write access (PutObject) without restricting who could upload, and the bucket was used as the origin for the subdomain.

Impact

An attacker could upload files to the bucket and take over the subdomain.

What the attacker needed

Unsecured S3 bucket; subdomain connected to bucket

The fix

The S3 bucket should be secured to prevent unauthorised uploads.

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 company used an S3 bucket for its website. The bucket was unsecured, allowing an attacker to upload files and take over the subdomain.

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 Muhammad Khizer Javed

View all

21 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.