mass-assignment

Identify and exploit mass assignment vulnerabilities in web APIs and frameworks.

6|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/securityfortech/hacking-skills --skill mass-assignment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mass-assignment
Source: https://github.com/securityfortech/hacking-skills/tree/main/skills/web/authz/mass-assignment
Command: npx skills add https://github.com/securityfortech/hacking-skills --skill mass-assignment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify and exploit vulnerabilities in web applications and APIs where user-controlled input can be used to modify sensitive backend data fields that should not be directly accessible.

Core Features & Use Cases

  • Detects Mass Assignment: Identifies frameworks and endpoints susceptible to mass assignment.
  • Exploits Privilege Escalation: Attempts to gain administrative privileges by injecting role or isAdmin fields.
  • Facilitates IDOR: Enables changing ownership of resources by injecting ownerId or userId.
  • Use Case: An attacker can exploit a profile update endpoint to change their user role to administrator, gaining full control of the application.

Quick Start

Use the mass-assignment skill to test the PUT /api/users/me endpoint for privilege escalation by sending a payload with an admin role.

Frequently Asked Questions about mass-assignment

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

FAQPage Schema
What is a mass assignment vulnerability in web APIs?

Attackers exploit mass assignment by sending crafted requests with unexpected fields to ORM update or create endpoints, manipulating backend model attributes to gain unauthorized data access or administrative privileges.

How do I exploit mass assignment for privilege escalation?

To exploit mass assignment for privilege escalation, send a crafted PUT request to a profile update endpoint injecting unexpected fields like role or isAdmin to modify backend model attributes and gain administrative access.

Can mass assignment enable IDOR and unauthorized ownership changes?

Mass assignment enables IDOR by allowing attackers to inject ownerId or userId fields into REST API requests, changing resource ownership and facilitating unauthorized data access without direct endpoint manipulation.

Does this mass assignment exploit target specific web frameworks?

The mass assignment exploit targets various web frameworks by testing ORM update and create endpoints, checking for framework-specific protections like strong parameters or fillable attributes to bypass authorization controls.

How do I test a REST API endpoint for mass assignment flaws?

Test REST API endpoints for mass assignment by sending crafted requests with unexpected fields to create or update operations, detecting unauthorized feature activation or data manipulation through model attribute injection.