Miggo Logo

CVE-2022-35933: PrestaShop Product Comments Cross-site Scripting vulnerability

4.3

CVSS Score
3.0

Basic Information

EPSS Score
0.30694%
Published
8/31/2022
Updated
1/31/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
prestashop/productcommentscomposer< 5.0.25.0.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the vulnerability was fixed by adding HTML entity encoding to the username value in renderAuthorName function. This indicates the function previously lacked proper output encoding for user-controlled input (username), making it susceptible to XSS. The CWE-79 classification and advisory descriptions confirm this was a classic stored XSS vulnerability in comment author name handling.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *n *tt**k*r *oul* st**l *n **min's *ooki* ### P*t***s T** issu* is *ix** in *.*.* ### R***r*n**s [Improp*r N*utr*liz*tion o* Input *urin* W** P*** **n*r*tion ('*ross-sit* S*riptin*')](*ttps://*w*.mitr*.or*/**t*/***initions/**.*tml)

Reasoning

T** *ommit *i** s*ows t** vuln*r**ility w*s *ix** *y ***in* *TML *ntity *n*o*in* to t** us*rn*m* v*lu* in `r*n**r*ut*orN*m*` *un*tion. T*is in*i**t*s t** *un*tion pr*viously l**k** prop*r output *n*o*in* *or us*r-*ontroll** input (us*rn*m*), m*kin* i