Skip to content
Access control Write-up Intermediate

Mass Assignment leads to Account Takeover and DoS

An update user feature allowed admins to change passwords of other users, including super-admins, by including a password field in the request. An attacker with admin privileges could take over accounts or set a password to null, causing a denial of service.

osintteam.blog

Published on osintteam.blog

Hey everyone, in this blog post, I’ll talk about a mass assignment vulnerability that I discovered in one my pentests.

Rahul Singh Chauhan, on osintteam.blog

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 update user endpoint accepted and processed a password field without proper authorisation checks, allowing admins to change passwords of other users including super-admins.

Impact

An attacker with admin privileges could take over any user account, including super-admins, and could permanently lock out users by setting their password to null.

What the attacker needed

Admin or super-admin privileges

How it was found

  1. Log in as a super admin and invoke the update user feature for another admin.
  2. Append a password field to the request.
  3. Refresh the victim's browser tab; they are redirected to login.
  4. Log in with the new password to confirm account takeover.
  5. Try updating a super-admin's password from an admin account; it succeeds.
  6. Set the password to null for another user, causing permanent lockout.

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.

Mass assignment is when a program automatically accepts extra fields in a request and updates them without checking if the user is allowed to change them. Here, an admin could sneak a password change into a normal profile update, letting them take over other accounts or lock them out.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.