CVE-2022-40044: Centreon/centreon Cross-Site Scripting Vulnerability
MODERATECVE-2022-40044 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Centreon/centreon libraries in the Packagist ecosystem. The issue involves centreon contains cross-site scripting vulnerability via esc_name parameter. Remediation is available by upgrading affected packages to version 21.04.16, 21.10.8, 22.04.1.
CVE-2022-40044 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2022-40044
To remediate this vulnerability, upgrade all affected Centreon/centreon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade centreon/centreon to 21.04.16
Upgrade centreon/centreon to 21.10.8
Upgrade centreon/centreon to 22.04.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for centreon/centreon
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-40044, inspect your project dependencies for Centreon/centreon:
inspect dependencies for centreon/centreon
Analyze the terminal output to locate any version of Centreon/centreon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 21.04.16), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Centreon/centreon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-40044 Affected Centreon/centreon Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
centreon/centreon
|
Packagist |
< 21.04.16
|
21.04.16
|
|
centreon/centreon
|
Packagist |
≥ 21.10.0
< 21.10.8
|
21.10.8
|
|
centreon/centreon
|
Packagist |
≥ 22.0.0
< 22.04.1
|
22.04.1
|
References
Frequently Asked Questions
What is CVE-2022-40044?
Which Centreon/centreon versions are affected?
What version fixes CVE-2022-40044?
Is centreon/centreon affected?
What is the CVSS score of CVE-2022-40044?
What CWE is associated with CVE-2022-40044?
How can I check Packagist dependencies for CVE-2022-40044?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rv5q-72p2-2q24",
"modified" : "2022-09-30T06:28:12Z",
"published" : "2022-09-27T00:00:20Z",
"aliases" : [ "CVE-2022-40044" ],
"summary" : "Centreon contains cross-site scripting vulnerability via esc_name parameter",
"details" : "Centreon v20.10.18 was discovered to contain a cross-site scripting (XSS) vulnerability via the `esc_name` (Escalation Name) parameter at `Configuration/Notifications/Escalations`. This vulnerability allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload. Versions 21.04.16, 21.10.8, and 22.04.2 contain patches.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "centreon/centreon"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "21.04.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "centreon/centreon"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "21.10.0"
}, {
"fixed" : "21.10.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "centreon/centreon"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0"
}, {
"fixed" : "22.04.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-40044"
}, {
"type" : "WEB",
"url" : "https://github.com/centreon/centreon/commit/1a6ee0e9a003ac4f07dc8c370aec6e8911279358"
}, {
"type" : "WEB",
"url" : "https://github.com/centreon/centreon/commit/76fdfba312515656419a1311a83adfb11a73199f"
}, {
"type" : "WEB",
"url" : "https://github.com/centreon/centreon/commit/cee5d3b0b0077182dfced5fb1d216a4ac168c05f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/centreon/centreon"
}, {
"type" : "WEB",
"url" : "https://github.com/centreon/centreon/releases"
}, {
"type" : "WEB",
"url" : "https://www.hakaioffensivesecurity.com/centreon-sqli-and-xss-vulnerability"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-30T06:28:12Z",
"nvd_published_at" : "2022-09-26T16:15:00Z"
}
}