Injection problems
Advanced PHP
2024-11-28
39
An example injection vulnerability is shown below
$dir = $_GET['directory'];
$contents = `ls $dir`;
echo $contents;
What happens if I pass '
directory=/; rm -rf /
'?