mass-assignment-audit

Audit ORM request body binding patterns for mass assignment vulnerabilities.

1|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/abhijeetkakade1234/skills --skill mass-assignment-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mass-assignment-audit
Source: https://github.com/abhijeetkakade1234/skills/tree/main/security-audit-orchestrator/specialized/mass-assignment-audit
Command: npx skills add https://github.com/abhijeetkakade1234/skills --skill mass-assignment-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies critical mass assignment vulnerabilities where applications blindly bind user-provided request data to database models, potentially allowing attackers to escalate privileges or modify restricted fields.

Core Features & Use Cases

  • Vulnerability Detection: Scans code for dangerous patterns like .update(req.body) or .fill(req.body) that lack proper allowlisting.
  • Security Hardening: Provides actionable guidance on implementing strong parameters, fillable/guarded model configurations, and manual field assignment.
  • Use Case: Use this during a security review of your API controllers to ensure that sensitive fields like role, is_admin, or price cannot be manipulated by unauthorized users via PATCH or PUT requests.

Quick Start

Analyze the provided codebase for mass assignment vulnerabilities by identifying all instances of ORM update methods that lack explicit field allowlists.

Frequently Asked Questions about mass-assignment-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect mass assignment vulnerabilities in my ORM controllers?

Detect mass assignment vulnerabilities by auditing request body binding patterns in API controllers. The scan identifies dangerous ORM update methods, such as blindly passing user request data to models without explicit allowlists.

What is a mass assignment vulnerability in API frameworks?

A mass assignment vulnerability occurs when applications blindly bind user-provided request data to database models. This allows attackers to escalate privileges or modify restricted fields like role or is_admin via PATCH or PUT requests.

How do I prevent unauthorized attribute modification in JavaScript, Python, or Ruby frameworks?

Prevent unauthorized attribute modification by implementing strong parameters, fillable or guarded model configurations, and manual field assignment. Validate that ORM update methods include explicit field allowlists for data handling.

Does this mass assignment audit support Java and PHP frameworks?

Yes, this mass assignment audit supports Java and PHP frameworks. It targets insecure data handling across JavaScript, Python, Ruby, Java, and PHP frameworks by validating field-level access controls and allowlists.

What's the best way to scan a codebase for insecure ORM update methods?

The best way to scan a codebase is to identify all instances of ORM update methods lacking explicit field allowlists. This validates the presence of strong parameters and access controls to prevent unauthorized attribute modification.

When do I need to audit API controllers for mass assignment security issues?

Audit API controllers for mass assignment security issues during a security review. This ensures sensitive fields like role, is_admin, or price cannot be manipulated by unauthorized users through request body binding.