MIR0812
TaintedInclude
User-controlled input reaches the path of include, include_once, require or require_once, letting an attacker run any local (or remote) PHP file.
Example
Section titled “Example”<?phpinclude $_GET['page'] . '.php'; // TaintedIncludeHow to fix
Section titled “How to fix”Map the input to a fixed list of files instead of building the path from it.
