Skip to content
Account takeover Write-up Beginner

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.

Rohit Kumar Follow

Published on medium.com

{{media:0}}

Rohit kumar, on medium.com

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

  1. Log in to your account.
  2. Go to the user edit page.
  3. Intercept the request when submitting the edit form.
  4. Add a password field to the user array in the request.
  5. 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.

More by Rohit Kumar

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.