Skip to content
Account takeover Write-up Intermediate

How I Chained Three Small Bugs Into a Critical

A password reset page placed the reset token in the URL and loaded a third-party script, so the full URL including the token leaked to an external domain through the Referer header. Combined with an open redirect on a login-related URL, this gave a path to stealing a victim's reset token and taking over the account.

medium.com

Published on medium.com

Here’s a lesson that leveled up my hunting more than any single technique: sometimes three “meh” bugs stack into one “holy wow” bug. Programs pay for IMPACT, and chaining is how you manufacture impact from small pieces.

Nitin yadav, 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 reset token was placed in the URL of a page that loads third-party resources, so the token was sent out in the Referer header to an external domain.

Impact

An attacker could obtain a victim's password reset token and take over the account, and the open redirect made the lure link look like it was on the trusted domain.

What the attacker needed

Victim opens the crafted reset link; reset page loads a third-party script

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.

When you visit a web page, your browser often tells the next site where you came from by sending the previous address in a header called Referer. If that previous address contains a secret, such as a password reset code, the secret is handed to whoever runs the next site. Here the reset code sat in the address bar and a script from another company was loaded on the same page, so the code went out to that company.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.