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