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
- median public bounty
- $3,000
- highest public bounty
- $5,000
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.
Seen in these reports8
Show all 8 reportsShow fewer
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.
Seen in these reports14
Year by year
3 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2016 | 1 |
|---|---|
| 2017 | 2 |
| 2024 | 4 |
| 2025 | 15 |
| 2026 | 29 |
-
2026
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.
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.
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.
-
2025
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.
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.
-
2024
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
Where it is found
14The features and places the reports found it in, most-reported first.
-
Mass assignment in a user profile API.
Seen in 1 report
-
Mass assignment escalating privileges.
-
Server-side parameter pollution in a REST URL.
Seen in 1 report
-
Parameter pollution in a PHP kernel and CRUD wizard.
-
Parameter pollution in a HackerOne endpoint.
Seen in 1 report
Technologies in these reports9
Root causes
26The mistakes in the code or configuration behind the reports.
-
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
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
Orders, carts and payments
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Payouts
5 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Medium | 1 | 0 | None paid | None |
| Low | 1 | 0 | None paid | None |
| Unrated | 60 | 5 | $3,000 | $5,000 |
Tips for beginners
12Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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.
-
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.
-
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.
Guides and techniques
The best explainers, cheat sheets and technique posts on Mass assignment, from around the web.
-
Mass Assignment: A Practical Methodology for API PentestingA step by step approach to hunting mass assignment flaws in APIs, from endpoint discovery to privilege escalation testing.
Methodology rootast.medium.com
-
IDOR to BOLA — Mastering Authorization Bugs in Bug BountyWalks from basic IDOR through BOLA, BFLA, nested object and cross-tenant authorization testing for APIs.
Methodology medium.com
-
Attacking APIs using JSON InjectionShows how JSON injection can manipulate API payloads to alter business logic and data flow.
Technique danaepp.com
-
$1000–$25k worth API Bug Attack & Chaining StrategiesDescribes chaining API flaws such as broken authorisation and mass assignment to escalate impact and payouts.
Technique infosecwriteups.com
-
Hacking APIs: Exploiting Batch and Mass AssignmentWalks through exploiting batch endpoints and mass assignment flaws in APIs to escalate privileges or alter protected fields.
Technique iaraoz.medium.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
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.