Exploit database

Vulnerability

CVE-2018-8735

Vulnerability details

Score
8.8
Severity
high

CVSS 3.0 · NVD

Vector string

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

Remote command execution (RCE) vulnerability in Nagios XI 5.2.x through 5.4.x before 5.4.13 allows an attacker to execute arbitrary commands on the target system, aka OS command injection.

CVE Program

Exploit source choices

4 sources
Nagios XI Chained Remote Code Execution
MSF-linux--http--nagios_xi_chained_rce_2_electric_boogalooMetasploitLinux / remote

This module exploits a few different vulnerabilities in Nagios XI 5.2.6-5.4.12 to gain remote root access. The steps are: 1. Issue a POST request to /nagiosql/admin/settings.php which sets the database user to root. 2. SQLi on /nagiosql/admin/helpedit.php allows us to enumerate API keys. 3. The API keys are then used to add an administrative user. 4. An authenticated session is established with the newly added user 5. Command Injection on /nagiosxi/backend/index.php allows us to execute the payload with nopasswd sudo, giving us a root shell. 6. Remove the added admin user and reset the database user.

2018-04-17nagios_xi_chained_rce_2_electric_boogaloo.rb
Nagios XI Chained Remote Code Execution
MSF-linux--http--nagios_xi_chained_rceMetasploitUnix / remote

This module exploits an SQL injection, auth bypass, file upload, command injection, and privilege escalation in Nagios XI <= 5.2.7 to pop a root shell.

2016-03-06nagios_xi_chained_rce.rb