Skip to content
Subdomain takeover Write-up Intermediate

Recon Roulette: Spinning Old Subdomains into a Fresh Critical Takeover

An old subdomain still pointed at a deleted cloud storage bucket, so the author claimed the bucket and served content from the trusted domain. Because the OAuth flow accepted any subdomain of the company domain as a redirect target, the author captured an authorisation code and exchanged it for an admin session, then read user data, audit logs and a database backup.

infosecwriteups.com

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 dangling DNS record pointing to a deleted cloud bucket, combined with an OAuth redirect allowlist that trusted any subdomain of the main domain.

Impact

The author could obtain an admin session and read user personal data, audit logs and a production database backup.

What the attacker needed

Old subdomain still in scope; dangling DNS to a deleted bucket; OAuth trusts any company subdomain

How it was found

  1. Find the old subdomain through passive enumeration and historical URL collection.
  2. Check DNS and see it aliases to a cloud bucket that returns not found.
  3. Claim the bucket and host content on the subdomain.
  4. Start an OAuth login with the redirect pointing at the hijacked subdomain and capture the returned code.
  5. Exchange the code for a token and call admin GraphQL queries.

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 smaller address under a company's main domain. If it still points to a cloud storage bucket that no longer exists, anyone can create that bucket and control what the subdomain shows. The login system then trusted that address and handed over a login code, which let the author act as an administrator.

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.