XWiki Platform privilege escalation from script right to programming right through title displayer
Critical severity
GitHub Reviewed
Published
Nov 7, 2023
in
xwiki/xwiki-platform
•
Updated Nov 7, 2023
Package
Affected versions
>= 3.2-milestone-3, < 14.10.7
>= 15.0, < 15.2-rc-1
Patched versions
14.10.7
15.2-rc-1
Description
Published by the National Vulnerability Database
Nov 7, 2023
Published to the GitHub Advisory Database
Nov 7, 2023
Reviewed
Nov 7, 2023
Last updated
Nov 7, 2023
Impact
In XWiki Platform, it's possible for a user to write a script in which any velocity content is executed with the right of any other document content author.
To reproduce:
As a user with script but not programming right, create a document with the following content:
Since this API require programming right and the user does not have it, the expected result is
$doc.document.authors.contentAuthor
(not executed script), unfortunately with the security vulnerability we getXWiki.superadmin
which shows that the title was executed with the right of the unmodified document.Patches
This has been patched in XWiki 14.10.7 and 15.2-RC-1.
Workarounds
There are no known workarounds for it.
References
For more information
If you have any questions or comments about this advisory:
References