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 field changes. Only run these tests with written permission.

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

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,234 stars · on GitHub · xalgorix.com

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 6
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • high Prompt Injection · line 354
    This pattern attempts to override system instructions or ignore safety constraints. Without LLM analysis, manual review is recommended.
    Fix: Remove or rewrite any text that instructs the agent to ignore prompts, override safety rules, or trust unverified content. Ensure skill content cannot be injected to alter agent behavior.
  • medium Data Exfiltration · line 184
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 230
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 254
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 269
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.5 $0.00046 $0.01635
Sonnet 5.5 $0.00023 $0.00818
Haiku 4.5 $0.00011 $0.00409

Measured 1mo ago against content hash 6ef704bfb735, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (1,234 stars, last pushed today), licensed Apache-2.0. It adds 114 tokens to every session and 4,088 once invoked, about $0.0005 per session on Opus 5.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

bypassing-authentication-with-forced-browsing

Discovering and accessing unprotected pages, APIs, and administrative interfaces by enumerating URLs and bypassing authentication controls during authorized security assessments.

26zl/cybersec-toolkit · 39 tokens

conducting-api-security-testing

Conducts security testing of REST, GraphQL, and gRPC APIs to identify vulnerabilities in authentication, authorization, rate limiting, input validation, and business logic. The tester uses the OWASP API Security Top 10 as the testing framework, combining Burp Suite interception with Postman collections and custom…

26zl/cybersec-toolkit · 99 tokens

business-logic

Test workflows, state transitions, pricing, and concurrency.

Strategic-Automation/violin · 15 tokens

identity-auth

Test identity, authentication, authorization, and sessions.

Strategic-Automation/violin · 13 tokens