Miggo Logo

CVE-2023-50721: Remote code execution from account through SearchAdmin

10

CVSS Score
3.1

Basic Information

EPSS Score
0.97423%
Published
12/16/2023
Updated
12/16/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:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.platform:xwiki-platform-search-uimaven>= 4.5-rc-1, < 14.10.1514.10.15
org.xwiki.platform:xwiki-platform-search-uimaven>= 15.0-rc-1, < 15.5.215.5.2
org.xwiki.platform:xwiki-platform-search-uimaven>= 15.6-rc-1, < 15.7-rc-115.7-rc-1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing escaping in the SearchAdmin interface template (SearchAdmin.xml). The commit diff shows critical additions of $escapetool.xml() and services.rendering.escape() calls to parameters that were previously rendered raw. The reproduction steps demonstrate that unescaped user-controlled values from XWiki.UIExtensionClass objects (id and label) were being interpreted as XWiki syntax, enabling script macro execution. The vulnerable code paths are the template interpolations that process these extension properties without sanitization, particularly in HTML attribute contexts and macro references.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** s**r** **ministr*tion int*r**** *o*sn't prop*rly *s**p* t** i* *n* l***l o* s**r** us*r int*r**** *xt*nsions, *llowin* t** inj**tion o* XWiki synt*x *ont*inin* s*ript m**ros in*lu*in* *roovy m**ros t**t *llow r*mot* *o** *x**ution, imp

Reasoning

T** vuln*r**ility st*ms *rom missin* *s**pin* in t** S**r****min int*r**** t*mpl*t* (S**r****min.xml). T** *ommit *i** s*ows *riti**l ***itions o* $*s**p*tool.xml() *n* s*rvi**s.r*n**rin*.*s**p*() **lls to p*r*m*t*rs t**t w*r* pr*viously r*n**r** r*w