XWiki allows RCE from script right in configurable sections
Critical severity
GitHub Reviewed
Published
Dec 12, 2024
in
xwiki/xwiki-platform
•
Updated Dec 12, 2024
Package
Affected versions
>= 2.3, < 15.10.9
>= 16.0.0-rc-1, < 16.3.0
Patched versions
15.10.9
16.3.0
Description
Published to the GitHub Advisory Database
Dec 12, 2024
Reviewed
Dec 12, 2024
Published by the National Vulnerability Database
Dec 12, 2024
Last updated
Dec 12, 2024
Impact
Any user with script rights can perform arbitrary remote code execution by adding instances of
XWiki.ConfigurableClass
to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.To reproduce on a instance, as a user with script rights, edit your user profile and add an object of type
XWiki.ConfigurableClass
("Custom configurable sections").Set "Display in section" and "Display in category" to
other
, "Scope" toWiki and all spaces
and "Heading" to:Save the page and view it, then add
?sheet=XWiki.AdminSheet&viewer=content§ion=other
to the URL.If the logs contain "attacker - Attack from Heading succeeded!", then the instance is vulnerable.
Patches
This has been patched in XWiki 15.10.9 and 16.3.0.
Workarounds
We're not aware of any workaround except upgrading.
References
For more information
If you have any questions or comments about this advisory:
References