Berildocs GitHub

Memory cards

Mass assignment is a binder trusting extra fields

confidence: highupdated: 2026-11-24status: activeapijsonmass-assignment

Claim#

A framework binds the request body to an object with more fields than the UI sends, such as role or balance.

Test#

Add one extra field at a time. Compare the object before and after. Try nested objects and arrays.

Proof#

A field changes that the UI never exposed.

Failure modes#

A field that is ignored is not mass assignment. Read the serializer or schema.