It's possible to execute a Velocity script without script right through the document tree.
To reproduce:
$request.requestURIThe 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:
#set ($discard = $translatedDocument.setTitle($translatedDocument.title))#set ($discard = $translatedDocument.setcomment(''))If you have any questions or comments about this advisory:
{
"cwe_ids": [
"CWE-863"
],
"github_reviewed": true,
"github_reviewed_at": "2023-12-19T21:39:31Z",
"nvd_published_at": "2023-12-21T20:15:07Z",
"severity": "HIGH"
}