For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mass Assignment

Overview

Mass assignment occurs when applications automatically bind HTTP parameters to model attributes without proper filtering.


Identify

Signs of Vulnerability

  • Framework uses auto-binding (Rails, Django, Node.js, etc.)

  • Hidden parameters in forms

  • API accepts extra fields in JSON/POST data

  • Registration or profile update forms

Test Method

  1. Intercept normal request

  2. Add extra parameters:

    • admin=true

    • role=admin

    • confirmed=1

    • verified=1

    • is_staff=true

    • active=1


Exploit

Registration Bypass

Admin Privilege Escalation

Profile Update


Framework-Specific Parameters

Ruby on Rails

Django

Node.js/Express


Finding Hidden Parameters

Source Code Review

Parameter Discovery Tools


Common Vulnerable Endpoints

Endpoint
Test Parameters

/register

admin, role, confirmed

/profile

is_admin, balance, role

/api/users

role, permissions

/settings

is_premium, verified

Last updated