Miggo Logo

CVE-2022-0956:
Cross-site Scripting in ShowDoc

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.54487%
Published
3/16/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
showdoc/showdoccomposer< 2.10.42.10.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the removal of '.md' from the allowed file extensions in the isAllowedFilename function. Since Markdown files can contain HTML/JavaScript when rendered, allowing .md uploads without proper sanitization creates a stored XSS vector. The direct modification to the allowlist in this function indicates it was the primary vulnerability point.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

S*ow*o* prior to *.**.* is vuln*r**l* to stor** *ross-sit* s*riptin* vi* *il* uplo**.

Reasoning

T** *ommit *i** s*ows t** r*mov*l o* '.m*' *rom t** *llow** *il* *xt*nsions in t** `is*llow***il*n*m*` *un*tion. Sin** M*rk*own *il*s **n *ont*in `*TML`/`J*v*S*ript` w**n r*n**r**, *llowin* .m* uplo**s wit*out prop*r s*nitiz*tion *r**t*s * stor** XSS