XWiki AdminSheet URL XSS Groovy Exec (<14.10.14/15.5.1)
CVE-2023-46731 Published on November 6, 2023
Remote code execution through the section parameter in Administration as guest in XWiki Platform
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki doesn't properly escape the section URL parameter that is used in the code for displaying administration sections. This allows any user with read access to the document `XWiki.AdminSheet` (by default, everyone including unauthenticated users) to execute code including Groovy code. This impacts the confidentiality, integrity and availability of the whole XWiki instance. This vulnerability has been patched in XWiki 14.10.14, 15.6 RC1 and 15.5.1. Users are advised to upgrade. Users unablr to upgrade may apply the fix in commit `fec8e0e53f9` manually. Alternatively, to protect against attacks from unauthenticated users, view right for guests can be removed from this document (it is only needed for space and wiki admins).
Vulnerability Analysis
CVE-2023-46731 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. 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 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-46731 has been classified to as a Code Injection vulnerability or weakness.
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-46731 has been classified to as an Eval Injection vulnerability or weakness.
Products Associated with CVE-2023-46731
Want to know whenever a new CVE is published for Xwiki? stack.watch will email you.
Affected Versions
xwiki-platform:- Version org.xwiki.platform:xwiki-platform-administration : < 14.10.14 is affected.
- Version org.xwiki.platform:xwiki-platform-administration-ui: < 14.10.14 is affected.
- Version org.xwiki.platform:xwiki-platform-administration-ui: >= 15.0-rc-1, < 15.5.1 is affected.
- Before 14.10.14 is affected.
- Version 15.0 and below 15.5.1 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-46731
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-administration-ui | < 14.10.14 | 14.10.14 |
| maven | org.xwiki.platform:xwiki-platform-administration-ui | >= 15.0-rc-1, < 15.5.1 | 15.5.1 |
| maven | org.xwiki.platform:xwiki-platform-administration | < 14.10.14 | 14.10.14 |
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.