A B C D E F G H I J K L M N O P Q R S T U V W Z
Ma Me Mf Mi Mo Mu
Mac Mag Mai Mal Man Mas

Mass Assignment

Mass assignment is a flaw where input data is automatically bound to object fields or model properties more broadly than intended. It matters because automatic convenience features can quietly let attackers set internal or privileged fields the application never meant to expose.

What is Mass Assignment?

If developers rely on broad object binding without strict allow rules, attackers may manipulate fields such as role, status, ownership, or internal flags. APIs and forms that accept JSON or structured objects are especially exposed to this pattern.

What Mass Assignment Commonly Supports

Common uses include secure coding review, API hardening, model binding safety, and schema validation design.

Mass Assignment vs. Explicit Field Allowlisting

Mass assignment accepts more client-controlled fields than intended. Explicit field allowlisting restricts binding to approved properties only.

Frequently Asked Questions

Why is mass assignment risky?

Because it can turn a harmless-looking request into privilege escalation or unauthorized state changes.

What reduces this risk?

Strict input schemas, allowlisted bindable fields, and server-side ownership checks help a lot.

Related Cybersecurity Terms