Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.mass-assignment.variable-variable

A variable name is taken from request input ($$name). Attackers can overwrite any variable in scope, emulating register_globals.

Last updated:

Suite: Security

php

A variable name is taken from request input ($$name). Attackers can overwrite any variable in scope, emulating register_globals.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Store request values in an explicit array keyed by an allow-list instead of variable variables.

References

Source: packages/engine/rules/sast/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.