Skip to content

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.

<?php
$action = $_GET['action'];
$action(); // TaintedCallable

Map the input to an allowlist of callables, for example with match.