Skip to content

In-depth lesson · technique

Mass assignment

What every disclosed Mass assignment report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
62

Learning APIs and access control, step 4

Overview

What it is and why programs pay for it.

Mass assignment is a vulnerability where an application automatically binds user-supplied input to internal objects or database records without restricting which fields can be set. This lets an attacker add or modify fields that were never intended to be user-controlled, such as role, verification status, or ownership identifiers. It is a form of insecure direct object reference because the attacker directly manipulates object properties. Programs care about mass assignment because it often leads to privilege escalation, account takeover, or data exposure, and it can be chained with other flaws for greater impact. Evidence shows mass assignment in user profile APIs, PHP WordPress applications, Node.js APIs, and Adobe ColdFusion, among others.

Mass assignment typically leads to privilege escalation, where a normal user can set an admin flag or role, or to account takeover by changing another user's email or verification status. It can also enable unauthorised access to data or functionality, such as changing store settings or order amounts. The technique is most often found in profile update endpoints, registration flows, settings APIs, and any feature that accepts JSON or form data and updates a database record. It appears in REST APIs, GraphQL (though not explicitly in the evidence), and traditional web applications, especially those using ORMs or frameworks that automatically bind request parameters to models.

How it works

The mechanics, as the reports show them.

Mass assignment works because the server takes the entire request body or a set of parameters and passes them directly to a function that updates a database record or object, without checking which fields the user is allowed to modify. Developers often use patterns like spreading all request fields into a model or using an ORM's mass assignment feature without an allow-list. This means any extra field included in the request will be written to the database if a corresponding column exists.

The attack is possible when the application lacks a whitelist of allowed fields or fails to validate that the user is authorised to set certain fields. Even if the user interface does not show these fields, an attacker can intercept the request and add them. The server trusts the client to only send expected fields, which is a dangerous assumption. Common root causes include binding the whole JSON body to a model, using rest or spread patterns, and missing ownership checks on the fields being updated.

To exploit mass assignment, an attacker first identifies endpoints that accept data and update records, such as profile updates, registration, or settings. They then observe the JSON response or infer hidden fields, such as role, isAdmin, verified, or balance. By adding these fields to the request, they test whether the server accepts and persists them. A follow-up GET request confirms whether the change took effect. This step-by-step process often involves trial and error, but the impact can be severe.

What makes mass assignment possible is the combination of automatic binding and missing authorisation checks. Frameworks and libraries often provide convenient ways to map request data to objects, and developers may not realise that this includes sensitive fields. Additionally, some applications rely on client-side controls to hide fields, but the server does not enforce restrictions. The evidence shows cases where the server accepted extra profile fields, trusted client-supplied identifiers, and bound request fields directly onto user records.

Year by year

3 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 29
Reports per year
20161
20172
20244
202515
202629
  1. 2026

    29 reports

    New this year4

    • Mass assignment is chained with other flaws such as IDOR, tenant isolation and CSV injection, in the disclosed reports.
    • Array nesting inside a filters object was used to slip a second workspace identifier past a rejected plain swap, in the disclosed reports.
    • A create-publication request with an id just below the 32-bit integer maximum was used to watch for counter overflow, in the disclosed reports.
    and 1 more

    Kept working6

    • Profile and settings endpoints repeatedly bound whole JSON bodies, letting hunters add hidden fields such as role or email verification and confirm persistence with a follow-up GET, in the disclosed reports.
    • A bit flip test that updated a benign field while including a target sensitive key in the JSON body proved effective, in the disclosed reports.
    and 4 more

    Turned up less2

    • The standalone server-side parameter pollution in REST URLs that dominated earlier years is less central as reports shift towards JSON body binding and chained flaws, in the disclosed reports.
    • The single-field email change test from the previous year gives way to multi-field and chained approaches, in the disclosed reports.
  2. 2025

    15 reports

    New this year4

    • Server-side parameter pollution in REST URLs and query strings grows into a broad recurring theme across many reports, in the disclosed reports.
    • Transaction status was set directly to completed to test whether the server accepted it, a fresh angle this year, in the disclosed reports.
    • Remote file imports were inspected for internal JSON fields such as file id, on-disk name, uploader and creation time, in the disclosed reports.
    and 1 more

    Kept working4

    • Hunters switched profile update requests to PUT with a JSON body and set the email field to another account's address to test for unauthorised email change, in the disclosed reports.
    • Client-supplied store setting fields were added to settings requests to test whether live mode activation could be bypassed, in the disclosed reports.
    and 2 more
  3. 2024

    4 reports

    Kept working1

    • Server-side parameter pollution in a REST URL was a productive angle for surfacing hidden parameters, in the disclosed reports.

    Reports from 20241

Every point, year by year

Where it is found

14

The features and places the reports found it in, most-reported first.

  1. Mass assignment in a user profile API.

    Seen in 1 report
  2. Mass assignment escalating privileges.

    Seen in 1 report
  3. Server-side parameter pollution in a REST URL.

    Seen in 1 report
  4. Parameter pollution in a PHP kernel and CRUD wizard.

    Seen in 1 report
  5. Parameter pollution in a HackerOne endpoint.

    Seen in 1 report
View all 14

Root causes

26

The mistakes in the code or configuration behind the reports.

  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
View all 26

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Profile and account settings

of 3 ticked
More in Profile and account settings

Other

of 3 ticked
More in Other

Orders, carts and payments

of 3 ticked
More in Orders, carts and payments

Roles and permissions

of 3 ticked
More in Roles and permissions
View more things to try

Payouts

5 paid

Public bounties in US dollars, from the data. 5 of 62 reports show an amount.

a quarter paid up to
$1,000
median
$3,000
three quarters paid up to
$3,650
highest
$5,000

One in ten paid reports was paid $4,460 or more.

SeverityReportsPaidMedianHighest
Medium 1 0 None paid None
Low 1 0 None paid None
Unrated 60 5 $3,000 $5,000

Tips for beginners

12

Advice for a first hunt, drawn from the reports.

  1. Intercept a legitimate update request and add extra fields that correspond to sensitive attributes. Use common names like role, admin, isAdmin, verified, email, or id. Then check if the server accepts them by re-fetching the resource. A simple bit flip test, where you update a benign field while including a target sensitive key, can reveal if the server binds all fields.

    Seen in 3 reports
  2. Test for privilege escalation by setting a role or admin flag to a privileged value on your own account. If the change persists, you have a finding. Also test if you can change another user's email or verification status to achieve account takeover. Always confirm impact with a follow-up request.

    Seen in 3 reports
  3. Start by mapping the application's endpoints that accept and update data, especially profile, settings, registration, and any API that returns JSON. Look for fields in responses that are not present in the UI, such as role, verified, or balance. These are prime candidates for mass assignment testing.

    Seen in 2 reports
  4. When testing, always use your own accounts and data. Do not attempt to access or modify other users' data without permission. If you suspect a vulnerability, demonstrate impact by showing you can modify your own privileges or access data you should not, but stop there and report responsibly.

    Seen in 2 reports
  5. Common mistakes include reporting a vulnerability that is out of scope or has no real impact. For example, being able to set a field that is not used for authorisation may not be a valid finding. Always check the program's policy and ensure you can demonstrate a security consequence, such as privilege escalation or data exposure.

    Seen in 2 reports
View all 12

Guides and techniques

The best explainers, cheat sheets and technique posts on Mass assignment, from around the web.

Keep learning

Where this lesson fits, and what to read next.

How this is made: our model read every listed Mass assignment report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 62 reports. All Mass assignment reports.