Miggo Logo

CVE-2022-1445: Stored cross-site scripting in Snipe-IT

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.53915%
Published
4/25/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
snipe/snipe-itcomposer< 5.4.35.4.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unescaped output of the 'checked_out_to' parameter. The patch adds the e() helper function to escape this value, confirming the lack of output encoding in the original transformAsset method. This method is part of the data transformation pipeline that prepares data for display, making it the logical point where XSS would occur.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Snip*-IT prior to v*rsion *.*.* is vuln*r**l* to stor** *ross-sit* s*riptin* ****us* t** input to t** `****k**_out_to` p*r*m*t*r is not *s**p**. T** vuln*r**ility is **p**l* o* st**lin* * us*r's *ooki*.

Reasoning

T** vuln*r**ility st*ms *rom un*s**p** output o* t** '****k**_out_to' p*r*m*t*r. T** p*t** ***s t** *() **lp*r *un*tion to *s**p* t*is v*lu*, *on*irmin* t** l**k o* output *n*o*in* in t** ori*in*l tr*ns*orm*ss*t m*t*o*. T*is m*t*o* is p*rt o* t** **t