Miggo Logo

CVE-2022-1457: Cross site scripting in facturascripts

9

CVSS Score
3.0

Basic Information

EPSS Score
0.57073%
Published
4/26/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
neorazorx/facturascriptscomposer< 2022.042022.04

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The key evidence comes from the patch diff showing the addition of HTML sanitization (self::toolBox()::utils()::noHtml()) to the $newValue assignment in setColumnOption. This function handles user-controlled 'title' parameter input for page options. Before the patch, the lack of output encoding made stored XSS possible when rendering these titles. The vulnerability matches the CVE description of XSS in title parameters affecting user/product edit pages.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

***tur*sripts is *n op*n sour** *RP so*tw*r*. Stor* XSS in titl* p*r*m*t*r *x**utin* *t **itUs*r P*** & **itPro*u*to p*** in *it*u* r*pository n*or*zorx/***tur*s*ripts prior to ****.**. *ross-sit* s*riptin* *tt**ks **n **v* **v*st*tin* *ons*qu*n**s.

Reasoning

T** k*y *vi**n** *om*s *rom t** p*t** *i** s*owin* t** ***ition o* *TML s*nitiz*tion (s*l*::tool*ox()::utils()::no*tml()) to t** $n*wV*lu* *ssi*nm*nt in s*t*olumnOption. T*is *un*tion **n*l*s us*r-*ontroll** 'titl*' p*r*m*t*r input *or p*** options.