-
CVSS Score
-| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore | maven | >= 6.4-milestone-1, < 14.10.19 | 14.10.19 |
| org.xwiki.platform:xwiki-platform-oldcore | maven | >= 15.0-rc-1, < 15.5.4 | 15.5.4 |
| org.xwiki.platform:xwiki-platform-oldcore | maven | >= 15.6-rc-1, < 15.10-rc-1 | 15.10-rc-1 |
The vulnerability stemmed from missing authorization checks when injecting Velocity macros from custom skin templates. The patch in commit 3d4dbb4 explicitly added a check for Script rights via authorizationManager.hasAccess(Right.SCRIPT, ...) in the injectBaseMacros method. Prior to this fix, the function blindly trusted template content regardless of the author's privileges, enabling privilege escalation. The test cases added in the commit also validate this behavior by checking macro injection only occurs with proper rights.