How I Bypassed a Basic Security Control in “Forgot Password”
The password reset flow accepted the user's current password as the new password, so a reset could leave the password unchanged. An attacker with temporary access to a reset link could 'change' the password to the same value, leaving no trace and giving the user a false sense of security.
While testing the password reset functionality of a web application, I discovered a subtle yet impactful security oversight. This writeup outlines how I was able to reuse the current password as the new password during a password reset process, which violates recommended security practices and highlights a flawed…
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 handler never compared the submitted new password with the stored current password (or a password history) before saving it.
Impact
The flaw did not allow account takeover or injection, but it could let someone with temporary access to a reset link leave the password unchanged and give the user a false sense of security; the text notes the issue was patched.
What the attacker needed
A registered account; access to the reset link
The fix
The application should reject a new password that matches the current password or a recent password history; the text says the issue was patched promptly.
How it was found
- Go to the Forgot Password page.
- Enter a registered email address.
- Receive a password reset link by email.
- Submit the same password as the current one in the new password form.
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 reset a password, the site should refuse to accept the password you already have, because otherwise nothing really changes. Here the site accepted the old password as the new one, so a reset could look successful while leaving the account exactly as it was. That matters if someone briefly gets hold of a reset link: they can 'reset' the password to the same value and the real owner may never notice.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.