Miggo Logo

CVE-2023-37914:
XWiki Platform privilege escalation (PR)/RCE from account through Invitation subject/message

9.9

CVSS Score
3.1

Basic Information

EPSS Score
0.88387%
Published
8/18/2023
Updated
11/11/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.platform:xwiki-platform-invitation-uimaven>= 2.5-m-1, < 14.4.814.4.8
org.xwiki.platform:xwiki-platform-invitation-uimaven>= 14.5, < 14.10.614.10.6
org.xwiki.platform:xwiki-platform-invitation-uimaven>= 15.0-rc-1, < 15.2-rc-115.2-rc-1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The core vulnerability stems from improper escaping in Velocity macros handling invitation subject lines. The patch adds 'wiki="false"' to disable wiki syntax parsing within these macros, which previously allowed attackers to inject {{groovy}} macros. Both InvitationCommon.xml and InvitationConfig.xml contained the vulnerable Velocity template definition that processed user-controlled input without proper context isolation, leading to code evaluation. The test cases added in the commit verify that macro syntax in subjectLine parameters is now properly escaped, confirming the attack vector.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *ny us*r w*o **n vi*w `Invit*tion.W***om*` **n *x**ut* *r*itr*ry s*ript m**ros in*lu*in* *roovy *n* Pyt*on m**ros t**t *llow r*mot* *o** *x**ution in*lu*in* unr*stri*t** r*** *n* writ* ****ss to *ll wiki *ont*nts. T*is **n ** r*pro*u*** wi

Reasoning

T** *or* vuln*r**ility st*ms *rom improp*r *s**pin* in V*lo*ity m**ros **n*lin* invit*tion su*j**t lin*s. T** p*t** ***s 'wiki="**ls*"' to *is**l* wiki synt*x p*rsin* wit*in t**s* m**ros, w*i** pr*viously *llow** *tt**k*rs to inj**t {{*roovy}} m**ros