Velocity execution without script right through tree macro
Package
Affected versions
>= 8.3-rc-1, < 14.10.7
>= 15.0-rc-1, < 15.2-rc-1
Patched versions
14.10.7
15.2-rc-1
Description
Published to the GitHub Advisory Database
Dec 19, 2023
Reviewed
Dec 19, 2023
Published by the National Vulnerability Database
Dec 21, 2023
Last updated
Dec 21, 2023
Impact
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.
Patches
This has been patched in XWiki 14.10.7 and 15.2RC1.
Workarounds
A possible workaround is to:
#set ($discard = $translatedDocument.setTitle($translatedDocument.title))
#set ($discard = $translatedDocument.setcomment(''))
References
For more information
If you have any questions or comments about this advisory:
References