In-depth lesson · Mass assignment
Root causes
Every point the Mass assignment reports back under this heading, best-backed first, each with the reports it is seen in.
-
The server passed the entire request body directly to the database update function without whitelisting allowed fields or using a data transfer object.
-
The server accepted extra profile fields and did not restrict name changes after approval.
Seen in 1 report
-
The profile update bound request fields directly to the user object without checking the email belonged to the caller.
Seen in 1 report
-
The application trusted client-supplied fields for store settings and did not check the store identifier belonged to the requester.
Seen in 1 report
-
The server trusted a client-supplied order amount instead of recalculating the price, and payment matching relied on amount-to-wallet matching with a tiny fixed pool.
Seen in 1 report
-
The update endpoint used a rest or spread pattern copying all user-supplied fields into the database model and lacked ownership checks on those fields.
Seen in 1 report
-
Missing server-side authorisation and state validation meant the application trusted client-supplied identifiers, status values and bulk user lists.
Seen in 1 report
-
The create endpoint bound request fields directly onto the database model, so a client-supplied id was written into an auto-increment column.
Seen in 1 report
-
The plugin passed all user-controlled fields to an internal API without filtering or a whitelist, and that API ran with administrative privileges.
Seen in 1 report
-
The server bound client-supplied request fields directly to the user object without validating or restricting sensitive attributes.
Seen in 1 report
-
Missing authorisation checks combined with predictable sequential IDs and mass assignment of sensitive fields.
Seen in 1 report
-
The authorisation check ran only on the top-level workspace identifier, after which the user-supplied filter object was handed to the ORM which turned a nested array into an IN clause.
Seen in 1 report
-
The backend trusted client-supplied object IDs and never validated that referenced add-ons and questions belonged to the selected event and selection.
Seen in 1 report
-
The backend bound the whole JSON body to the workspace model without an allow-list, so restricted fields such as plan type and verification could be set by any authenticated user.
Seen in 1 report
-
The server trusted a client-supplied organisation identifier as the tenant selector without verifying it against the authenticated session, and treated the random identifier as a secret even though an unauthenticated endpoint exposed it.
-
The profile-update handler copied every field from the request body onto the user record instead of explicitly allowing only safe fields.
-
The backend automatically mapped all client-supplied JSON properties to internal object attributes without restricting which fields users could set.
Seen in 1 report
-
The server trusted client-controlled identifiers and values such as cart ID, course ID, price and session token placement without independently verifying ownership or deriving values from trusted data.
-
The query builder treated an unrecognised filter as no filter at all, dropping the ownership condition instead of rejecting the request, and resource endpoints never checked record ownership.
-
The preference-saving endpoint checked only that a preference existed, not whether it was enabled for the user's role, so the disabled flag was ignored on write.
Seen in 1 report
-
The profile update endpoint accepted and saved a server-controlled verification flag from the user's request instead of ignoring it.
-
The server accepted a client-supplied internal record identifier and used it to select which database row to update without checking the caller was authorised.
Seen in 1 report
-
The user-detail endpoint lacked an ownership check, and the update handler bound client-supplied fields such as role and superuser flags directly onto the user record.
Seen in 1 report
-
The server accepted client-supplied identifiers and extra JSON fields without checking that the caller owned the record or was allowed to set those fields.
Seen in 1 report
-
$3,650
-
-
The server did not verify that the authenticated user owned the user ID being updated, and accepted an email field in the update request without proper authorisation checks.
Seen in 1 report
-
The application automatically bound request parameters to database columns, allowing arbitrary columns such as user IDs and conversation IDs to be set.