Don’t Miss Any Authentication Layer: Bypassing Password Verification for Unauthorized Account Modifications
The application relied on a client-side success parameter to decide whether the current password check had passed, so an attacker could change the password without knowing the old one. This could lead to unauthorised account modification and account takeover.
Published on hackersatty.medium.com
Hi everyone! My name is Satyam Pawale, also known as @hackersatty in the bug bounty world.
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 server trusted a client-controlled success flag or request parameter instead of independently verifying the current password.
Impact
An attacker could modify account credentials without knowing the current password, potentially leading to account takeover and unauthorised access to user data.
What the attacker needed
Ability to intercept and modify requests; a valid session or auth token
The fix
The application should strictly enforce server-side password verification before allowing any sensitive changes.
How it was found
- Intercept the password change request in a proxy tool.
- Observe that the server returns a success flag set to false when the current password is wrong.
- Modify the response so the success flag is true, or add a success parameter to the request.
- The system accepts the new password 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, a website should ask for your old password and check it on its own servers. Here, the site apparently trusted a value sent back by the browser (a 'success' flag) instead of checking the old password itself. That means someone who can intercept and edit the request could pretend the check passed 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.