testing-api-for-mass-assignment-vulnerability

testing-api-for-mass-assignment-vulnerability is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 114 tokens per session (4,088 once invoked), scanned A, original, Apache-2.0.

An API security test for mass assignment, a flaw where users can change data fields they should not control by adding extra request parameters.

In plain words
What is it for?
Use it to test profile updates, registrations, and object-creation endpoints for unauthorized field changes. Only run these tests with written permission.
Why use it?
It helps reveal whether an API accepts hidden or privileged fields such as roles, permissions, prices, or account balances.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test profile updates, registrations, and object-creation endpoints for unauthorized…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/testing-api-for-mass-assignment-vulnerability
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xalgorix/xalgorix --skill testing-api-for-mass-assignment-vulnerability
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

Made for: Claude Code, Codex.

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 testing-api-for-mass-assignment-vulnerability

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/testing-api-for-mass-assignment-vulnerability.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/testing-api-for-mass-assignment-vulnerability)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/testing-api-for-mass-assignment-vulnerability"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/testing-api-for-mass-assignment-vulnerability.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00114 $0.04088
Opus 5 $0.00057 $0.02044
Sonnet 5 $0.00023 $0.00818
Haiku 4.5 $0.00011 $0.00409

Measured 7d ago against content hash 6ef704bfb735, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

testing-api-for-mass-assignment-vulnerability scanned grade A with 1 finding 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 7d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

baseline_user = requests.get(f"{BASE_URL}/users/me", headers=user_headers).json()
internal/tools/skills/data/api-security/testing-api-for-mass-assignment-vulnerability/SKILL.md · 363 lines

How it starts

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

Testing API for Mass Assignment Vulnerability

When to Use

  • Testing API endpoints that accept JSON/XML request bodies for user profile updates, registration, or object creation
  • Assessing whether the API binds all client-supplied properties to the data model without an allowlist
  • Evaluating if users can set privileged attributes (role, permissions, pricing, balance) through regular update endpoints
  • Testing APIs built with ORMs that auto-bind request parameters to database models
  • Validating that server-side input validation restricts writeable properties per user role

Do not use without written authorization. Mass assignment testing involves modifying object properties in potentially destructive ways.

Most Often Missed & How to Confirm

  • Field-name aliasing: role, is_admin, isAdmin, admin, is_superuser, account_type, roles[] often map to the same column - one spelling failing does not clear the rest.
  • Domain-specific fields: beyond role, inject subscription_plan, credit_limit, balance, discount_percent, verified, is_active, and price/total.
  • Nested and framework forms: test {"user":{"role":"admin"}}, Rails user[role], Mongoose $set/_id, and Django is_staff/groups.
  • Both create and update: POST register and PUT/PATCH profile may filter differently.

How to confirm a hit (avoid false negatives): a 200 that echoes the injected field is NOT proof - re-fetch the object (GET) and confirm the privileged value persisted, then exercise the privilege (e.g., an admin endpoint returns 200, or an order total is actually charged at 0.01). Don't conclude negative until you've tried: all field-name aliases, nested/framework-specific payloads, both POST and PUT/PATCH, and verified persistence by re-reading the object rather than trusting the write response.

Prerequisites

  • Written authorization specifying target API endpoints and scope
  • Test accounts at different privilege levels
  • API documentation or OpenAPI specification to identify expected request fields
  • Burp Suite Professional for request interception and parameter injection
  • Python 3.10+ with requests library
  • Knowledge of the backend framework (Rails, Django, Express, Spring) to predict parameter binding behavior

Read the full file on GitHub · 363 lines

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. 7d ago First seen · 363 lines · 114 tokens per session scan A 6ef704bfb735

Subscribe to this mod's changes

testing-api-for-mass-assignment-vulnerability is a skill published in the GitHub repository xalgorix/xalgorix (959 stars, last pushed today), licensed Apache-2.0. It adds 114 tokens to every session and 4,088 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

testing-api-for-mass-assignment-vulnerability

Tests APIs for mass assignment (auto-binding) vulnerabilities where clients can modify object properties they should not have access to by including additional parameters in API requests. The tester identifies writable endpoints, adds undocumented fields to request bodies (role, isAdmin, price, balance), and checks if…

balsm-health/Balsm-AI · 114 tokens

testing-api-for-mass-assignment-vulnerability

Tests APIs for mass assignment (auto-binding) vulnerabilities where clients can modify object properties they should not have access to by including additional parameters in API requests. The tester identifies writable endpoints, adds undocumented fields to request bodies (role, isAdmin, price, balance), and checks if…

Njones17/AI-agent-master-cyber-skills-list · 114 tokens

test-suite-architect

This skill should be used when establishing comprehensive QA testing processes for any software project. Use when creating test strategies, writing test cases following Google Testing Standards, executing test plans, tracking bugs with P0-P4 classification, calculating quality metrics, or generating progress reports.…

zebbern/claude-code-guide · 89 tokens

poc-validator

Proof-of-Concept (PoC) Validation Skill for security exploit verification. Use when validating exploitability of vulnerabilities, generating tailored payloads, executing exploits in sandboxed environments, or verifying successful exploitation (e.g., SQL injection, CVE exploitation, command injection). Triggers on…

SHAdd0WTAka/Zen-Ai-Pentest · 86 tokens

tdd-agent

Autonomous test-driven development agent that writes code to make tests pass.

SHAdd0WTAka/Zen-Ai-Pentest · 17 tokens

Web Application Security Testing

OWASP Top 10 testing, injection vulnerability detection, API security assessment, authentication testing, and web vulnerability reporting for authorized assessments.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens