vetkit.php.path-traversal.request-input
A file path (or URL) used to read, write or delete a file comes from request input (path traversal). Attackers can use ../ sequences or absolute paths to reach other files.
Last updated:
Suite: Security
php
A file path (or URL) used to read, write or delete a file comes from request input (path traversal). Attackers can use ../ sequences or absolute paths to reach other files.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Reduce the value to a file name with basename(), look it up in an allow-list or a database id → path mapping, and verify the realpath() stays inside the intended directory.
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.