How i Unlocked the blocked accounts?
A blocked account's password reset token could be used to reset the password of a different, valid account, allowing the attacker to regain access to their own blocked account. After the initial fix, adding an extra parameter with the blocked account's token still bypassed the block.
Published on medium.com
{{media:0}}
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 password reset endpoint did not verify that the submitted token was issued for the account whose password was being changed, and later a parameter pollution issue allowed the blocked token to be accepted again.
Impact
An attacker could regain access to their own blocked account, and potentially reset passwords for other accounts if they obtained a valid token, though the text only demonstrates the former.
What the attacker needed
A blocked account; ability to intercept requests (e.g., Burp Suite); a valid account for the second attempt
The fix
The initial fix rejected the direct token replacement, but a parameter pollution bypass remained; the text does not state a final fix.
How it was found
- Trigger a password reset for a blocked account and obtain the reset token from the link.
- Start a password reset for a valid account and intercept the request.
- Replace the valid account's token with the blocked account's token and submit.
- The password reset succeeds, allowing access to the blocked account.
- After the fix, add an extra parameter containing the blocked account's token to the original request.
- The reset succeeds again, bypassing the block.
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 sends a special link with a secret code (a token) to prove it's you. The bug was that the website did not check that the code belonged to the account being reset, so a code from a blocked account could be used to reset a different account's password. This let the attacker get back into their own blocked 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.