Sudo Reboot Privilege Escalation
Sudo reboot commands might be vulnerable to privilege escalation (PrivEsc).
If we can execute "reboot" command as root, we can escalate to privileges.
We need to look for the system service config file which are writable.
If we find a writable file, we can inject a payload into Service.ExecStart.
Now reboot as root.
After the system rebooted, the command in the ExecStart will be executed. Now we should get a root shell by executing the copied bash command.
Last updated