User Account Takeover [Password Change]— Nice Catch!
The account edit form accepted a password field without requiring the old password, allowing an attacker to change the victim's password. An attacker could take over the account by submitting a modified request.
Published on medium.com
{{media:0}}
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 all fields in the user array and did not enforce the old-password check for password changes.
Impact
An attacker could change the victim's password without knowing the old one, leading to account takeover.
What the attacker needed
A free account; victim's user ID
The fix
The server should require the old password when changing the password and should not accept arbitrary fields in the user update request.
How it was found
- Log in to your account.
- Go to the user edit page.
- Intercept the request when submitting the edit form.
- Add a password field to the user array in the request.
- Submit the modified request to change the 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 edit your profile, the website sends your changes to the server. The server was not checking that you are allowed to change your password without proving you know the old one. So an attacker could sneak in a password change and take over the account.
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.