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🎈
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
- Find a redirect URL containing a reference to an unregistered domain.
- Register the unregistered domain.
- Set up a dummy web server on the domain to capture incoming requests.
- Wait for requests containing session cookies and JWTs to arrive.
- 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.