Miggo Logo

CVE-2013-4791:
PrestaShop Stored Cross-Site Scripting Vulnerability

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.43188%
Published
5/5/2022
Updated
8/28/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
prestashop/prestashopcomposer< 1.4.111.4.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues: 1) Insufficient input sanitization when saving TinyMCE-generated content (handled by AdminCmsContentController's save process), and 2) Improper TinyMCE configuration allowing event attributes. Low-privileged users could inject XSS via TinyMCE's HTML mode, and the lack of output encoding when rendering stored content exacerbated the issue. The fix in v1.4.11 likely involved updating TinyMCE and adding server-side sanitization.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Pr*st*S*op ***or* *.*.** *llows Lo*isti*i*n, tr*nsl*tors *n* ot**r low l*v*l pro*il*s/***ounts to inj**t * p*rsist*nt XSS v**tor on TinyM**.

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *) Insu**i*i*nt input s*nitiz*tion w**n s*vin* TinyM**-**n*r*t** *ont*nt (**n*l** *y **min*ms*ont*nt*ontroll*r's s*v* pro**ss), *n* *) Improp*r TinyM** *on*i*ur*tion *llowin* *v*nt *ttri*ut*s. Low-privil**