Zero-Click ATO via Reusable Password Reset Token
The password reset token was static and identical for every account, so the same hash value appeared in reset links for both the attacker and the victim. By swapping the email parameter in a reset link to the victim's address while keeping the known hash, an attacker could reset the victim's password and take over the account.
medium.com
Published on medium.com
Hey Guys and Welcome Back After long time , I Stopped Hunting for 3 months ago and return back again with a ZERO CLICK ATO , it seems a traditional bug for the most of hunters but also so many Hunters didn't care to test in Reset Password Functionality , so lets start :
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 a fixed value shared across all accounts rather than a unique, random, single-use secret tied to one user.
Impact
An attacker who knows a victim's email address could reset their password and take over the account without any interaction from the victim.
What the attacker needed
Know the victim's email address; no victim interaction needed
The fix
Reset tokens should be unique, random, single-use values bound to a specific account and expire quickly.
How it was found
- Register two accounts, one as attacker and one as victim.
- Trigger the forgot-password flow on the attacker account and inspect the reset link's hash parameter.
- Resend the reset request and observe the hash value stays the same.
- Trigger the reset flow for the victim account and see the same hash value.
- Change the email parameter in the reset link to the victim's address.
- Set a new password and log in as the victim.
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 a password, a site emails you a link containing a secret code (a token) that proves you own the account. Here that code was the same for everyone and never changed, so anyone who knew a victim's email address could build a working reset link and set a new password.
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.