Skip to content

CVE-2023-27479 Improper Neutralization of Directives in Dynamically Evaluated Code in org.xwiki.platform:xwiki-platform-panels-ui

CriticalCVSS 9.9 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions any user with view rights can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping of UIX parameters. A proof of concept exploit is to log in, add an XWiki.UIExtensionClass xobject to the user profile page, with an Extension Parameters content containing label={{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("Hello " + "from groovy!"){{/groovy}}{{/async}}. Then, navigating to PanelsCode.ApplicationsPanelConfigurationSheet (i.e., <xwiki-host>/xwiki/bin/view/PanelsCode/ApplicationsPanelConfigurationSheet where <xwiki-host> is the URL of your XWiki installation) should not execute the Groovy script. If it does, you will see Hello from groovy! displayed on the screen. This vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10-rc-1. Users are advised to upgrade. For users unable to upgrade the issue can be fixed by editing the PanelsCode.ApplicationsPanelConfigurationSheet wiki page and making the same modifications as shown in commit 6de5442f3c.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
org.xwiki.platform/xwiki-platform-panels-ui(Maven) >= 6.3-milestone-2, < 13.10.11; >= 14.0, < 14.4.7; >= 14.5, < 14.10-rc-1 13.10.11, 14.4.7, 14.10-rc-1 Fixed
xwiki = 6.3; = 6.3-milestone1; = 6.3-milestone2; >= 6.3, < 13.10.11 +2 more 13.10.11, 14.4.7, 14.10 Fixed
xwiki-platform = >= 6.3-milestone-2, < 13.10.11; = >= 14.0.0, < 14.4.7; = >= 14.5.0, < 14.10-rc-1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
org.xwiki.platform/xwiki-platform-panels-ui(Maven) >= 6.3-milestone-2, < 13.10.11 13.10.11
org.xwiki.platform/xwiki-platform-panels-ui(Maven) >= 14.0, < 14.4.7 14.4.7
org.xwiki.platform/xwiki-platform-panels-ui(Maven) >= 14.5, < 14.10-rc-1 14.10-rc-1
xwiki-platform = >= 6.3-milestone-2, < 13.10.11 No fix listed
xwiki-platform = >= 14.0.0, < 14.4.7 No fix listed
xwiki-platform = >= 14.5.0, < 14.10-rc-1 No fix listed
xwiki >= 6.3, < 13.10.11 13.10.11
xwiki >= 14.0, < 14.4.7 14.4.7
xwiki >= 14.5, < 14.10 14.10
xwiki = 6.3 No fix listed
xwiki = 6.3-milestone1 No fix listed
xwiki = 6.3-milestone2 No fix listed

References