This module exploits an OS command injection vulnerability in includes/components/nxti/index.php that enables an authenticated user with admin privileges to achieve remote code execution as the `apache` user. The module uploads a simple PHP shell via includes/components/nxti/index.php to includes/components/autodiscovery/jobs/<php_shell> and then executes the payload as the `apache` user via an HTTP GET request to includes/components/autodiscovery/jobs/<php_shell>?<php_param>=<cmd> Valid credentials for a Nagios XI admin user are required. This module has been successfully tested against Nagios XI 5.7.3 running on CentOS 7.
Exploit database
Vulnerability
CVE-2020-5792
Vulnerability details
- Score
- 7.2
- Severity
- high
CVSS 3.1 · NVD
Vector string
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDescription
Improper neutralization of argument delimiters in a command in Nagios XI 5.7.3 allows a remote, authenticated admin user to write to arbitrary files and ultimately execute code with the privileges of the apache user.
CVE ProgramShowing saved CVE details. Refresh is temporarily unavailable.
Exploit source choices
1 sourceNagios XI 5.5.0-5.7.3 - Snmptrap Authenticated Remote Code Exection
2020-10-20nagios_xi_snmptrap_authenticated_rce.rb