Miggo Logo

CVE-2023-46242: XWiki Platform vulnerable to remote code execution via the edit action because it lacks CSRF token

9.7

CVSS Score
3.1

Basic Information

EPSS Score
0.86584%
Published
11/7/2023
Updated
11/14/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.platform:xwiki-platform-oldcoremaven>= 1.0, < 14.10.714.10.7
org.xwiki.platform:xwiki-platform-oldcoremaven>= 15.0, < 15.2-rc-115.2-rc-1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing CSRF protection in the edit action's document preparation logic. The patched commit shows the vulnerable code path in prepareEditedDocument() handled document modifications without checking the CSRF token. This function is directly responsible for processing user-submitted content changes, and its pre-patch version failed to validate() request authenticity, making it the entry point for CSRF-based privilege escalation and code injection attacks. The addition of CSRFToken validation in this method in the fix confirms its critical role in the vulnerability.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t In XWiki Pl*t*orm, it's possi*l* to *x**ut* *ont*nt wit* t** ri**t o* *ny us*r i* you **n m*k* t*is us*r *ollow * *r**t** URL. T*is is possi*l* ****us* **it **tion s*ts *n* t**r**y *x**ut*s t** p*** *ont*nt wit*out ****kin* *or * *ross-si

Reasoning

T** vuln*r**ility st*ms *rom missin* *SR* prot**tion in t** **it **tion's *o*um*nt pr*p*r*tion lo*i*. T** p*t**** *ommit s*ows t** vuln*r**l* *o** p*t* in `pr*p*r***it***o*um*nt()` **n*l** *o*um*nt mo*i*i**tions wit*out ****kin* t** *SR* tok*n. T*is
CVE-2023-46242: XWiki Edit Action CSRF RCE | Miggo