MIR0810
TaintedCallable
User-controlled input is used as a callable or class name: call_user_func(), a callback argument, $name(), $object->$name() or new $name(). The attacker can then run arbitrary functions.
Example
Section titled “Example”<?php$action = $_GET['action'];$action(); // TaintedCallableHow to fix
Section titled “How to fix”Map the input to an allowlist of callables, for example with match.
