← back
CVE-2023-50721

XWiki Platform RCE from account through SearchAdmin

CVSS 10 CRITICALEPSS 78.8%CWE-94CWE-95
In short

XWiki's search settings page fails to properly clean user-supplied text, allowing anyone who can edit their profile to inject malicious code that executes with full system privileges. This lets attackers take complete control of the wiki server.

Technical detail

The SearchAdmin interface in XWiki Platform (versions 4.5-rc-1 through 15.6) does not escape the id and label parameters of search UI extensions, enabling injection of XWiki syntax with Groovy script macros for RCE. Any authenticated user with page edit permissions (including default profile editing) can inject malicious payloads that execute server-side code, compromising confidentiality, integrity, and availability of the entire instance.

Summary generated and translated by AI from the official description.
XWiki Platform is a generic wiki platform. Starting in 4.5-rc-1 and prior to versions 14.10.15, 15.5.2, and 15.7-rc-1, the search administration interface doesn't properly escape the id and label of search user interface extensions, allowing the injection of XWiki syntax containing script macros including Groovy macros that allow remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki instance. This attack can be executed by any user who can edit some wiki page like the user's profile (editable by default) as user interface extensions that will be displayed in the search administration can be added on any document by any user. The necessary escaping has been added in XWiki 14.10.15, 15.5.2 and 15.7RC1. As a workaround, the patch can be applied manually applied to the page `XWiki.SearchAdmin`.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products
xwiki · xwiki-platform

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →