IT lexicon › Security › Mass assignment

Mass assignment

Security På svenska → Updated: 2026-07-30

Vulnerability: the framework takes the entire request body and assigns fields directly — including ones the user shouldn't be able to set.

Classic: POST { "name": "Bob", "is_admin": true } to Rails/Django/Sequelize → privilege escalation. Defences: explicit allowlist of permitted fields (strong params, DTOs). The 2012 GitHub hack was mass assignment.

← Back to the lexicon