Vulnerability Details : CVE-2023-37908
XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. The cleaning of attributes during XHTML rendering, introduced in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid attribute names. This can be exploited, e.g., via the link syntax in any content that supports XWiki syntax like comments in XWiki. When a user moves the mouse over a malicious link, the malicious JavaScript code is executed in the context of the user session. When this user is a privileged user who has programming rights, this allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. While this attribute was correctly recognized as not allowed, the attribute was still printed with a prefix `data-xwiki-translated-attribute-` without further cleaning or validation. This problem has been patched in XWiki 14.10.4 and 15.0 RC1 by removing characters not allowed in data attributes and then validating the cleaned attribute again. There are no known workarounds apart from upgrading to a version including the fix.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2023-37908
- cpe:2.3:a:xwiki:xwiki-rendering:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-37908
0.22%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 60 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-37908
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.6
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
2.8
|
6.0
|
NIST | |
9.0
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
2.3
|
6.0
|
GitHub, Inc. |
CWE ids for CVE-2023-37908
-
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.Assigned by: nvd@nist.gov (Primary)
-
The product does not neutralize or incorrectly neutralizes "javascript:" or other URIs from dangerous attributes within tags, such as onmouseover, onload, onerror, or style.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2023-37908
-
https://jira.xwiki.org/browse/XRENDERING-697
[XRENDERING-697] XHTML printer allows (stored) XSS through invalid attributes - XWiki.org JIRAExploit;Issue Tracking;Vendor Advisory
-
https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-6gf5-c898-7rxp
Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers · Advisory · xwiki/xwiki-rendering · GitHubExploit;Patch;Vendor Advisory
-
https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-663w-2xp3-5739
Improper Neutralization of Invalid Characters in Identifiers in Web Pages in org.xwiki.rendering:xwiki-rendering-xml · Advisory · xwiki/xwiki-rendering · GitHubExploit;Patch;Vendor Advisory
-
https://github.com/xwiki/xwiki-rendering/commit/f4d5acac451dccaf276e69f0b49b72221eef5d2f
XRENDERING-697: XHTMLWikiPrinter doesn't validate generated data attr… · xwiki/xwiki-rendering@f4d5aca · GitHubPatch
Jump to