Miggo Logo

CVE-2021-23562: Code injection in plupload

4.2

CVSS Score
3.1

Basic Information

EPSS Score
0.75299%
Published
12/16/2021
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
pluploadnpm< 2.3.92.3.9

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The key vulnerability was in how file metadata (particularly filenames) was handled in UI rendering. The commit d12175d shows they added plupload.xmlEncode() to file[$1] in a template string. This matches the CWE-75 (Special Element Injection) description and the vulnerability's XSS nature. The affected code was in the jQuery UI integration component that displays uploaded files, where unescaped filename values could lead to HTML injection.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T*is *****ts t** p**k*** pluplo** ***or* *.*.*. * *il* n*m* *ont*inin* J*v*S*ript *o** *oul* ** uplo**** *n* run. *n *tt**k*r woul* n*** to tri*k * us*r to uplo** t*is kin* o* *il*.

Reasoning

T** k*y vuln*r**ility w*s in *ow *il* m*t***t* (p*rti*ul*rly *il*n*m*s) w*s **n*l** in UI r*n**rin*. T** *ommit `*******` s*ows t**y ***** `pluplo**.xml*n*o**()` to *il*[$*] in * t*mpl*t* strin*. T*is m*t***s t** *W*-** (Sp**i*l *l*m*nt Inj**tion) **