Miggo Logo

CVE-2021-32856:
Microweber Cross-site Scripting vulnerability

6.1

CVSS Score

Basic Information

EPSS Score
-
Published
2/21/2023
Updated
2/22/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
microweber/microwebercomposer<= 1.2.12

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the vulnerability exists in the save_from_live_edit method where user-controlled HTML input ($the_field_data['html']) was processed with only make_tags sanitization. The security advisory explicitly states this insufficient sanitization enables copy-paste XSS. The added AntiXSS::xss_clean in the patch confirms the original function's vulnerability. The function's direct handling of user input from the WYSIWYG editor matches the attack vector described in the CVE.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Mi*row***r is * *r** *n* *rop w**sit* *uil**r *n* *ont*nt m*n***m*nt syst*m. V*rsions *.*.** *n* prior *r* vuln*r**l* to *opy-p*st* *ross-sit* s*riptin* (XSS). *or t*is p*rti*ul*r typ* o* XSS, t** vi*tim n***s to ** *ool** into *opyin* * m*li*ious p*

Reasoning

T** *ommit *i** s*ows t** vuln*r**ility *xists in t** s*v*_*rom_liv*_**it m*t*o* w**r* us*r-*ontroll** *TML input ($t**_*i*l*_**t*['*tml']) w*s pro**ss** wit* only m*k*_t**s s*nitiz*tion. T** s**urity **visory *xpli*itly st*t*s t*is insu**i*i*nt s*ni