mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
16 lines
229 B
Markdown
16 lines
229 B
Markdown
|
# TaintedShell
|
||
|
|
||
|
Emitted when tainted input detection is turned on and tainted shell code is detected.
|
||
|
|
||
|
```php
|
||
|
<?php
|
||
|
|
||
|
$command = $_GET["command"];
|
||
|
|
||
|
runCode($command);
|
||
|
|
||
|
function runCode(string $command) {
|
||
|
exec($command);
|
||
|
}
|
||
|
```
|