Finding

Form reflects attacker-supplied unknown field

errorWebsite securitymass-assignment/mass_assignment_reflectionGenerated from the catalogue

This page is generated from the scanner's own catalogue. A fuller explanation — how to check it yourself, and fixes for common platforms — is being written.

In short

A POST form to an update-shaped endpoint reflected a sentinel value from an attacker-injected field that was not part of the baseline payload. This indicates the server blindly binds request parameters into its data model, the core condition for a mass-assignment / over-posting vulnerability: an attacker who submits a field such as role, is_admin, verified, or balance alongside the form's real fields could get the server to accept it, changing data — including their own privilege level — that the form was never meant to expose.

How to fix it

Use allow-list parameter binding (strong parameters or DTOs) and reject unknown fields server-side.

Fix it with your coding agent

Prompt for Claude Code, Cursor or Codex

An Ingati scan of my website reported “Form reflects attacker-supplied unknown field” (finding mass-assignment/mass_assignment_reflection, severity error). Find where this comes from in this codebase or the server configuration, fix it, and explain what you changed. The scanner's guidance: Use allow-list parameter binding (strong parameters or DTOs) and reject unknown fields server-side. Then tell me how to confirm the fix, so the next scan shows it as fixed.

How Ingati finds it

This is one of the Website security checks, and it runs on every scan. When Ingati finds the problem, your report lists it as error, with where it was found and what the scanner saw. Later scans show it as fixed once it is gone.

Ingati checks this and thousands of other things on every scan.

Start scanning