1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/docs/running_psalm/issues/TaintedShell.md
2021-01-29 11:46:13 +01:00

16 lines
227 B
Markdown

# TaintedShell
Emitted when user-controlled input can be passed into to an `exec` call or similar.
```php
<?php
$command = $_GET["command"];
runCode($command);
function runCode(string $command) {
exec($command);
}
```