how i found the “Insufficient Authorization in Password Change Endpoint” vulnerability ?
The password change endpoint did not verify the old password on the server side. An attacker who had a logged-in session could change the account password without knowing the current one.
Published on doordiefordream.medium.com
bugbounty info You can view and join @bugbountyinfo right away.t.me
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
Impact
An attacker with an active session could change the account password without knowing the current one, potentially locking out the legitimate user.
What the attacker needed
A registered account; an active logged-in session
The fix
The server should require and verify the current password before accepting a password change.
How it was found
- Register a normal user account and log in.
- Go to the profile section and open the password change option.
- Enter a wrong old password and a new password, then capture the request.
- Remove the old_password parameter from the request and forward it.
- Observe that the password was changed and log in with the new 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 current password to prove it is really you. Here, the server did not check that old password at all, so anyone already logged in could set a new password without knowing the old one.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.