All rules →
Rules / PHP
SHIELD-PHP-010

Path traversal via file read with request data

highPHPCWE-22CVSS 8.6

What it detects

File read function receives request data directly, allowing path traversal to arbitrary files.

How to fix

Canonicalize with realpath() and confirm the path stays within an allowed base directory.

Scan your repo freeFull documentation
Back to all rules
SHIELD-PHP-010: Path traversal via file read with request data — Zennoxa Shield