Miggo Logo

CVE-2022-23615: Partial authorization bypass on document save in xwiki-platform

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.14378%
Published
2/9/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.platform:xwiki-platform-oldcoremaven>= 1.0, < 13.013.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

XWiki Pl*t*orm is * **n*ri* wiki pl*t*orm o***rin* runtim* s*rvi**s *or *ppli**tions *uilt on top o* it. *ny us*r wit* S*RIPT ri**t (**IT ri**t ***or* XWiki *.*) **n s*v* * *o*um*nt wit* t** ri**t o* t** *urr*nt us*r w*i** *llow ****ssin* *PI r*quiri

Reasoning

T** vuln*r**ility st*ms *rom t** *o*um*nt.s*v*() m*t*o*'s *ut*oriz*tion ****k. T** ori*in*l *o** (***or* t** p*t**) only ****k** i* t** *urr*nt us*r **s pro*r*mmin* ri**ts (**sPro*r*mmin*Ri**ts()) to **t*rmin* w**t**r to s*v* wit* t** *urr*nt us*r's