Lucene search

K
githubGitHub Advisory DatabaseGHSA-FM68-J7WW-H9XF
HistoryJun 30, 2023 - 8:41 p.m.

XWiki Platform vulnerable to Code Injection in icon themes

2023-06-3020:41:57
CWE-74
GitHub Advisory Database
github.com
8
xwiki platform
code injection
icon themes
remote code execution
security patch
attack vectors
vulnerability
xwiki syntax
velocity code

CVSS3

9.9

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.011

Percentile

84.4%

Impact

By either creating a new or editing an existing document with an icon set, an attacker can inject XWiki syntax and Velocity code that is executed with programming rights and thus allows remote code execution. There are different attack vectors, the simplest is the Velocity code in the icon set’s HTML or XWiki syntax definition. The icon picker can be used to trigger the rendering of any icon set. The XWiki syntax variant of the icon set is also used without any escaping in some documents, allowing to inject XWiki syntax including script macros into a document that might have programming right, for this the currently used icon theme needs to be edited. Further, the HTML output of the icon set is output as JSON in the icon picker and this JSON is interpreted as XWiki syntax, allowing again the injection of script macros into a document with programming right and thus allowing remote code execution. This impacts the confidentiality, integrity and availability of the whole XWiki instance.

Patches

This has been patched in XWiki 14.10.6 and 15.1. Icon themes now require script right and the code in the icon theme is executed within the context of the icon theme, preventing any rights escalation. A macro for displaying icons has been introduced to avoid injecting the raw wiki syntax of an icon set into another document.

Workarounds

There are no workarounds apart from upgrading to a version containing the fix.

References

Affected configurations

Vulners
Node
org.xwiki.platformxwiki-platform-icon-uiRange15.0-rc-115.2-rc-1
OR
org.xwiki.platformxwiki-platform-icon-uiRange6.2-milestone-114.10.6
OR
org.xwiki.platformxwiki-platform-icon-defaultRange15.0-rc-115.2-rc-1
OR
org.xwiki.platformxwiki-platform-icon-scriptRange15.0-rc-115.2-rc-1
OR
org.xwiki.platformxwiki-platform-icon-scriptRange6.2-milestone-114.10.6
OR
org.xwiki.platformxwiki-platform-icon-defaultRange6.2-milestone-114.10.6
VendorProductVersionCPE
org.xwiki.platformxwiki-platform-icon-ui*cpe:2.3:a:org.xwiki.platform:xwiki-platform-icon-ui:*:*:*:*:*:*:*:*
org.xwiki.platformxwiki-platform-icon-default*cpe:2.3:a:org.xwiki.platform:xwiki-platform-icon-default:*:*:*:*:*:*:*:*
org.xwiki.platformxwiki-platform-icon-script*cpe:2.3:a:org.xwiki.platform:xwiki-platform-icon-script:*:*:*:*:*:*:*:*

CVSS3

9.9

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.011

Percentile

84.4%

Related for GHSA-FM68-J7WW-H9XF