XWiki Platform Mentions UI vulnerable to Cross-site Scripting
Critical severity
GitHub Reviewed
Published
Sep 8, 2022
in
xwiki/xwiki-platform
•
Updated Jan 27, 2023
Package
Affected versions
>= 12.5-rc-1, < 13.10.6
>= 14.0, < 14.4
Patched versions
13.10.6
14.4
Description
Published by the National Vulnerability Database
Sep 8, 2022
Published to the GitHub Advisory Database
Sep 16, 2022
Reviewed
Sep 16, 2022
Last updated
Jan 27, 2023
Impact
It's possible to store Javascript or groovy scripts in an mention macro anchor or reference field. The stored code is executed by anyone visiting the page with the mention.
For example, the example below will create a file at
/tmp/exploit.txt
:Patches
This issue has been patched on XWiki 14.4 and 13.10.6.
Workarounds
It's possible to fix the vulnerability by updating
XWiki.Mentions.MentionsMacro
and edit theMacro code
field of theXWiki.WikiMacroClass
XObject.Must be replaced by
See the patches:
References
For more information
If you have any questions or comments about this advisory:
References