Miggo Logo

CVE-2022-0704:
Cross-site Scripting in Pimcore

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.062%
Published
3/17/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
pimcore/pimcorecomposer<= 10.3.310.4.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing CSP nonce attributes in script tags, which allowed XSS payloads to execute. The commit adds nonce handling in HeadScript.php's itemToString method, indicating this was the vulnerable point. The Twig templates (index.html.twig) were modified to include nonce attributes in all script tags, confirming that previously they were rendered without CSP protection. The HeadScript component's failure to include nonces in generated script tags before the patch directly enabled XSS exploitation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Pim*or* **.*.* *n* prior is vuln*r**l* to stor** *ross-sit* s*riptin*. * p*t** is *v*il**l* on t** **.x *r*n** *n* will lik*ly ** p*rt o* v*rsion **.*.*.

Reasoning

T** vuln*r**ility st*ms *rom missin* *SP non** *ttri*ut*s in s*ript t**s, w*i** *llow** XSS p*ylo**s to *x**ut*. T** *ommit ***s non** **n*lin* in `****S*ript.p*p`'s `it*mToStrin*` m*t*o*, in*i**tin* t*is w*s t** vuln*r**l* point. T** Twi* t*mpl*t*s