Centreon sysName Cross-Site Scripting Remote Code Execution Vulnerability
The sysName OID in SNMP is not properly validated, allowing an attacker to inject an arbitrary script. This can lead to remote code execution in the context of the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Centreon. User interaction is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application failed to sanitise or validate the sysName value received via SNMP before using it in a context where script execution is possible.
Impact
An attacker could execute arbitrary code with the privileges of the service account, but user interaction is required.
What the attacker needed
User interaction required; SNMP sysName value is attacker-controlled
The fix
The vulnerability was fixed in Centreon-web versions 22.10.15, 23.04.10 and 23.10.1.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SNMP is a protocol used to monitor network devices, and the sysName OID is a field that holds a device's name. Centreon did not check what was stored in that field, so an attacker could put a script there. When the application later used that value, the script ran, letting the attacker run their own code on the server.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.