XWiki Platform 4.5-rc-1<15.7RC1: XSS-RCE via Unescaped Search Admin IDs
CVE-2023-50721 Published on December 15, 2023
XWiki Platform RCE from account through SearchAdmin
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`.
Vulnerability Analysis
CVE-2023-50721 can be exploited with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Types
What is an Eval Injection Vulnerability?
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). This may allow an attacker to execute arbitrary code, or at least modify what code can be executed.
CVE-2023-50721 has been classified to as an Eval Injection vulnerability or weakness.
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2023-50721 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2023-50721
Want to know whenever a new CVE is published for Xwiki? stack.watch will email you.
Affected Versions
xwiki-platform:- Version >= 4.5-rc-1, < 14.10.15 is affected.
- Version >= 15.0-rc-1, < 15.5.2 is affected.
- Version >= 15.6-rc-1, < 15.7-rc-1 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-50721
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-search-ui | >= 4.5-rc-1, < 14.10.15 | 14.10.15 |
| maven | org.xwiki.platform:xwiki-platform-search-ui | >= 15.0-rc-1, < 15.5.2 | 15.5.2 |
| maven | org.xwiki.platform:xwiki-platform-search-ui | >= 15.6-rc-1, < 15.7-rc-1 | 15.7-rc-1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.