Change password logic inversion
The password change form checked the new password's validity before confirming the old password was correct. An attacker with access to a logged-in session could use this ordering to enumerate the account's current password.
Originally disclosed on HackerOne
- Disclosed after 18 days
Summary by the program
A security researcher discovered that during the password change process, the new password was validated before verifying the old password's accuracy, despite the user entering the values and submitting on a single form. If a user was logged in on a shared machine, this could have led to a productive (albeit, limited scope) password enumeration attack during the remainder of the session (up to 7 days) for that one user.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
On a shared machine, an attacker could perform a limited password enumeration attack against that one user for the rest of the session, up to seven days.
What the attacker needed
Attacker has access to a logged-in session; shared or unattended machine
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 report has not been written yet. The Original tab links to the source.
When you change a password, the site should first check that you know the current one. Here it checked the new password first, so someone using an already logged-in browser could try guesses and learn things about the real password.
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.