Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.mass-assignment.parse-str-global

parse_str() is called without a result array, so query-string keys become local variables (variable overwrite; removed in PHP 8).

Last updated:

Suite: Security

php

parse_str() is called without a result array, so query-string keys become local variables (variable overwrite; removed in PHP 8).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Always pass the second argument (parse_str($query, $params)) and read values from that 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.