CVE-2022-23615: Partial authorization bypass on document save in xwiki-platform
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.14378%
CWE
Published
2/9/2022
Updated
2/3/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.xwiki.platform:xwiki-platform-oldcore | maven | >= 1.0, < 13.0 | 13.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the Document.save() method's authorization check. The original code (before the patch) only checked if the current user has programming rights (hasProgrammingRights()) to determine whether to save with the current user's author. This allowed scripts created by users without programming rights to execute document saves with the privileges of any user who later runs the script (if that user has programming rights). The commit patched this by introducing a configuration check (security.script.save.checkAuthor) and modifying the conditional logic to enforce proper authorization validation. The function's direct involvement in the security check and the explicit patch in this method confirm its vulnerability.