vetkit.php.mass-assignment.extract-request
extract() imports request input as local variables. Attackers can overwrite any variable in scope, such as authorization flags or file paths.
Last updated:
Suite: Security
php
extract() imports request input as local variables. Attackers can overwrite any variable in scope, such as authorization flags or file paths.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Read the needed keys explicitly ($name = $_POST['name'] ?? '') instead of extracting the whole array.
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.