module

Nagios XI Authenticated Remote Command Execution

Disclosed
2019-07-29
Created
2020-03-09

Description

This module exploits a vulnerability in Nagios XI before 5.6.6 in
order to execute arbitrary commands as root.

The module uploads a malicious plugin to the Nagios XI server and then
executes this plugin by issuing an HTTP GET request to download a
system profile from the server. For all supported targets except Linux
(cmd), the module uses a command stager to write the exploit to the
target via the malicious plugin. This may not work if Nagios XI is
running in a restricted Unix environment, so in that case the target
must be set to Linux (cmd). The module then writes the payload to the
malicious plugin while avoiding commands that may not be supported.

Valid credentials for a user with administrative privileges are
required. This module was successfully tested on Nagios XI 5.6.5
running on CentOS 7. The module may behave differently against older
versions of Nagios XI. See the documentation for more information.

Authors

Jak Gibb
Erik Wynter

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/http/nagios_xi_authenticated_rce
msf exploit(nagios_xi_authenticated_rce) > show targets
...targets...
msf exploit(nagios_xi_authenticated_rce) > set TARGET < target-id >
msf exploit(nagios_xi_authenticated_rce) > show options
...show and set options...
msf exploit(nagios_xi_authenticated_rce) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.