Skip to content

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.

Back to the lesson 1 to 26 of 26
  1. The server passed the entire request body directly to the database update function without whitelisting allowed fields or using a data transfer object.

    Seen in 2 reports
  2. The server accepted extra profile fields and did not restrict name changes after approval.

    Seen in 1 report
  3. The profile update bound request fields directly to the user object without checking the email belonged to the caller.

    Seen in 1 report
  4. The application trusted client-supplied fields for store settings and did not check the store identifier belonged to the requester.

    Seen in 1 report
  5. 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
  6. 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
  7. Missing server-side authorisation and state validation meant the application trusted client-supplied identifiers, status values and bulk user lists.

    Seen in 1 report
  8. 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
  9. 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
  10. The server bound client-supplied request fields directly to the user object without validating or restricting sensitive attributes.

    Seen in 1 report
  11. Missing authorisation checks combined with predictable sequential IDs and mass assignment of sensitive fields.

    Seen in 1 report
  12. 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
  13. 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
  14. 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
  15. 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.

    Seen in 1 report
  16. The profile-update handler copied every field from the request body onto the user record instead of explicitly allowing only safe fields.

    Seen in 1 report
  17. The backend automatically mapped all client-supplied JSON properties to internal object attributes without restricting which fields users could set.

    Seen in 1 report
  18. 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.

    Seen in 1 report
  19. 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.

    Seen in 1 report
  20. 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
  21. The profile update endpoint accepted and saved a server-controlled verification flag from the user's request instead of ignoring it.

    Seen in 1 report
  22. 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
  23. 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
  24. 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
  25. 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
  26. The application automatically bound request parameters to database columns, allowing arbitrary columns such as user IDs and conversation IDs to be set.

    Seen in 1 report