Skip to content
Account takeover Write-up Beginner

😶 The Password I Never Reset — And Still Got In

The password reset flow created an authenticated session as soon as the reset link was visited, before any new password was set. An attacker who obtained a reset link could log into the victim's account without knowing the password or passing MFA.

LordofHeaven Follow

Published on infosecwriteups.com

But that’s exactly what happened — and it all started with a simple “Forgot Password” link.

LordofHeaven, 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 the application treated possession of a valid reset token as proof of identity and created a session immediately, instead of waiting for the password to be changed.

Impact

An attacker with access to a reset link could take over any account, bypassing passwords and MFA, and could escalate privileges by targeting admin accounts.

What the attacker needed

Access to a valid password reset link

The fix

The reset link should only allow setting a new password; no session should be created until the password is successfully changed, after which the user should be redirected to login.

How it was found

  1. Click 'Forgot Password' and enter a known user email.
  2. Receive the reset link by email and open it.
  3. Land on the 'Set New Password' page.
  4. Click 'Cancel' instead of setting a new password.
  5. Observe that the dashboard loads and the account is authenticated.

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 forget your password, a website emails you a special link to set a new one. Normally, clicking that link should only let you choose a new password, not log you in. Here, just opening the link logged the person in, so anyone who got the link could enter the account.

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.

More by LordofHeaven

View all

9 more disclosed reports, best first.

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.