Miggo Logo

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

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.01557%
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 exploitation. The commit adds nonce handling through ContentSecurityPolicyHandler and modifies HeadScript::itemToString to include these nonces. In vulnerable versions (<10.4.0), this method lacked nonce injection, making any script tags generated through this helper (including those handling user-influenced content) vulnerable to XSS if output wasn't properly sanitized elsewhere. The Twig template changes adding {{ pimcore_csp.getNonceHtmlAttribute() }} confirm the injection point for hardening.

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 *xploit*tion. T** *ommit ***s non** **n*lin* t*rou** `*ont*ntS**urityPoli*y**n*l*r` *n* mo*i*i*s `****S*ript::it*mToStrin*` to in*lu** t**s* non**s. In vuln*r