Skip to content
Subdomain takeover Write-up Intermediate

404 to 0wnage: How a Broken Link Led Me to Admin Panel Access

A redirect parameter pointed to an unregistered domain, which the author registered and used to capture admin session cookies and JWTs. The author then used a captured session cookie to access the admin panel.

medium.com

Published on medium.com

Free Link🎈

Iski, 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 application referenced an unregistered third-party domain in redirect parameters and emails, allowing an attacker to claim it and receive sensitive data.

Impact

The attacker could hijack admin sessions, leak JWTs, reset passwords for other users, and gain full access to the backend and internal APIs.

What the attacker needed

Unregistered domain referenced; ability to register domain; victim interacts with link

The fix

The affected sessions were revoked and all broken domain references were removed.

How it was found

  1. Find a redirect URL containing a reference to an unregistered domain.
  2. Register the unregistered domain.
  3. Set up a dummy web server on the domain to capture incoming requests.
  4. Wait for requests containing session cookies and JWTs to arrive.
  5. Use a captured session cookie to access the admin dashboard.

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 broken link on a website pointed to a domain that no longer existed. The author bought that domain and set up a server to catch any traffic sent to it. Because the site still used that domain in redirects and emails, sensitive login tokens were sent to the author's server, letting them log in as an admin.

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.