1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/docs/running_psalm/issues/TaintedShell.md
2020-11-17 16:03:50 -05:00

227 B

TaintedShell

Emitted when user-controlled input can be passed into to an exec call or similar.

<?php

$command = $_GET["command"];

runCode($command);

function runCode(string $command) {
    exec($command);
}