mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 10:38:49 +01:00
340 B
340 B
TaintedText
Emitted when tainted input detection is turned on and tainted text is detected somewhere unexpected.
This can lead to dangerous situations, like running arbitrary functions.
<?php
$name = $_GET["name"];
evalCode($name);
function evalCode(string $name) {
if (is_callable($name)) {
$name();
}
}