mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 21:19:03 +01:00
74749d20cc
Ref #4590
16 lines
227 B
Markdown
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);
|
|
}
|
|
```
|