XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro
High severity
GitHub Reviewed
Published
Oct 25, 2023
in
xwiki/xwiki-rendering
•
Updated Nov 10, 2023
Description
Published by the National Vulnerability Database
Oct 25, 2023
Published to the GitHub Advisory Database
Oct 25, 2023
Reviewed
Oct 25, 2023
Last updated
Nov 10, 2023
Impact
The footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation.
To reproduce, perform the following steps:
{{footnote}}{{groovy}}println("Hello " + "from groovy!"){{/groovy}}{{/footnote}}
When the text "Hello from groovy!" is displayed at the bottom of the document, the installation is vulnerable. Instead, an error should be displayed.
Patches
This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1.
Workarounds
There is no workaround apart from upgrading to a fixed version of the footnote macro.
References
References