It's possible to execute a Velocity script without script right through the document tree.
To reproduce:
$request.requestURI
The navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right.
This has been patched in XWiki 14.10.7 and 15.2RC1.
A possible workaround is to:
* modify the page XWiki.DocumentTreeMacros
* search for the code #set ($discard = $translatedDocument.setTitle($translatedDocument.title))
* modify it into #set ($discard = $translatedDocument.setcomment(''))
If you have any questions or comments about this advisory: * Open an issue in Jira XWiki.org * Email us at Security Mailing List
{ "nvd_published_at": "2023-12-21T20:15:07Z", "cwe_ids": [ "CWE-863" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2023-12-19T21:39:31Z" }