How I Bypassed Current Password Verification
The password change endpoint checked the current password on the server but the client-side flow relied on the server's JSON response to decide whether to proceed. By intercepting the 403 response and replacing its body with an empty JSON object, the author got the application to accept the change without knowing the old password.
Published on infosecwriteups.com
Hello Guys, This is Sufiyan Gouri today I am going to tell you how I was able to bypass password verification
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 client-side password change flow trusted the server's JSON response body to decide whether verification succeeded, rather than the server enforcing the check on the actual change request.
Impact
An attacker with access to an authenticated session could change the account password without knowing the current one, which could lead to account takeover.
What the attacker needed
An authenticated session; ability to intercept and modify responses
The fix
The server should enforce the current-password check on the password change request itself and not let the client decide based on a response body.
How it was found
- Submit a random password to the password change endpoint and intercept the request.
- Observe the 403 Forbidden response with an invalid credentials message.
- Replace the response body with an empty JSON object and forward it.
- The password change is accepted without the correct current password.
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 change your password, the site first asks for your old one to prove it is really you. Here the site's own page decided whether to continue based on a message sent back by the server, and the tester edited that message in transit. Because the page trusted the edited message, it let the password change go through even though the old password was wrong.
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.