source: https://www.securityfocus.com/bid/42322/info Nagios XI is prone to multiple cross-site request-forgery vulnerabilities because the application fails to properly validate HTTP requests. Successful exploit requires that the 'nagiosadmin' be logged into the web interface. Attackers can exploit these issues to gain unauthorized access to the affected application and perform certain administrative actions. Nagios XI 2009R1.2B is vulnerable; other versions may also be affected. Reset the nagiosadmin password via CSRF This can be useful to hijack the administrators account.
Reset the configuration manager password The attacker just has the victim visit the following URL. Even if the nagios admin is not logged into the configuration admin, the attacker can… 1. Force a password reset of the configuration manager 2. Log the nagiosadmin into the configuration manager 3. Create a simple web shell on the nagios server. http://www.example.com/nagiosxi/admin/credentials.php?options=1 &update=1 &config_admin_password=letmein1 &subsystem_ticket=2objrv9t6glq &config_backend_password=38ajpt Log into the configuration manager with previously set password Modify nagios command to create a webshell when run Note the \ before the ; in our php code is what makes this possible. Normally Nagios would not allow for a ; to be input into the command string unless escaped. PHP will happily still execute this code despite the \ being there. Add a Host to make sure our command is triggered, and the web shell created. Yes this is a long and boring form…