Skip to content
Subdomain takeover Write-up Intermediate

Forgotten by Design: How an Unused Subdomain Gave Me Full Cloud

A dangling DNS record for a staging subdomain pointed to an unused S3 bucket, allowing the author to claim the bucket and host content on the company's subdomain. Archived JavaScript files exposed a hardcoded API token and cloud credentials, which the author used to access a user list and staging cloud storage.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.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 a forgotten DNS record pointing to a deleted cloud storage bucket, combined with hardcoded secrets in publicly accessible JavaScript files.

Impact

The author could host content on a legitimate subdomain and, using exposed secrets, access internal user data and staging cloud storage, potentially leading to full cloud compromise.

What the attacker needed

Ability to create an S3 bucket with the same name; access to archived versions of the site; none

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 is a part of a website address, like blog.example.com. If that subdomain points to a cloud storage bucket that no longer exists, anyone can create a bucket with the same name and take control of the subdomain. Here, old website files also contained secret passwords, which let the author access more of the company's systems.

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 iski

View all

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