Overposting
Overposting is a security vulnerability in which client-supplied fields are automatically bound to application properties that were not intended for client modification.
Secure APIs
Mass assignment is an object-binding behavior that maps multiple client-supplied fields directly onto an application's object or model.
- How it is used
- Uses payment APIs to show how unrestricted field binding can let clients override business-critical state.
- How deep it goes
- Explains the failure mode, consequences, vulnerable and constrained implementations, but does not detail framework-specific internals.
- Examples
- Uses payment-status payloads, Ruby on Rails binding, and Python request schemas to demonstrate exploitation and prevention.
- What you can do after
- Diagnose unrestricted model binding and apply operation-specific request schemas that exclude server-controlled fields.
ASP.NET Core in Action, 3e
Overposting is a security vulnerability in which client-supplied fields are bound directly to properties that the application did not intend to expose for modification.
- How it is used
- Protects create and edit operations from unintended client-controlled property changes.
- How deep it goes
- Defines the vulnerability and demonstrates explicit mapping, but does not show a concrete attack payload.
- Examples
- Uses CreateRecipeCommand-to-Recipe mapping and a Razor Pages InputModel with selective property binding.
- What you can do after
- Apply it via purpose-specific binding models and explicit property mapping before persistence.
Related concepts
- protected attributesaddressed by · Protected attributes are model properties configured to reject direct assignment through a mass-assignment mechanism.
- validationaddressed by · The process of checking data, behavior, systems, models, or results against defined criteria to assess their correctness, suitability, or acceptability.
- sanitizationaddressed by · Sanitization is the process of checking, modifying, removing, or normalizing data to meet relevant safety, privacy, consistency, or domain requirements before use or sharing.
- secure by designused by · Secure by design is an engineering approach that incorporates security requirements and protections throughout a system’s design, development, and lifecycle.
- vulnerabilitykind of · A vulnerability is a weakness or susceptibility in a system, process, or person that can expose it to harm, misuse, failure, or compromise.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

