PT-2023-31630 · Xwiki · Xwiki Platform
Michael Hamann
·
Published
2023-12-19
·
Updated
2024-01-04
·
CVE-2023-50732
CVSS v3.1
8.3
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
XWiki Platform versions prior to 14.10.7
XWiki Platform versions prior to 15.2RC1
Description
The issue allows execution of a Velocity script without script right through the document tree. This can be exploited by a user without script right creating a document with a title set to
$request.requestURI, which upon saving and viewing, executes the Velocity code, as indicated by the navigation panel displaying a document named with the current URL.Recommendations
For versions prior to 14.10.7, update to XWiki 14.10.7.
For versions prior to 15.2RC1, update to 15.2RC1.
As a temporary workaround, consider modifying the page XWiki.DocumentTreeMacros by changing the code
#set ($discard = $translatedDocument.setTitle($translatedDocument.title)) to #set ($discard = $translatedDocument.setcomment('')).Exploit
Fix
Incorrect Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Xwiki Platform