Miggo Logo

CVE-2022-31037: OroCommerce Cross site scripting vulnerability during shipping rule editing for UPS integration

6.9

CVSS Score
3.1

Basic Information

EPSS Score
0.50196%
Published
10/18/2022
Updated
1/30/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
oro/commercecomposer>= 4.1.0, < 5.0.65.0.6

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper output encoding in the shipping rule edit interface. Given that OroCommerce uses Twig templates (common in Symfony-based applications), and XSS occurs specifically in the UPS Surcharge field, the most probable root cause is a template rendering the surcharge value without adequate escaping. The absence of patch details requires inference, but the pattern matches classic XSS vulnerabilities in templating systems where user-controlled input is directly embedded in HTML/JS contexts without sanitization.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t S*ippin* rul* **it p*** is vuln*r**l* to *ross sit* s*riptin* (XSS) p*ylo** ***** to UPS Sur***r** *i*l*. T** *tt**k*r s*oul* **v* p*rmission to *r**t* or **it * s*ippin* rul*.

Reasoning

T** vuln*r**ility st*ms *rom improp*r output *n*o*in* in t** s*ippin* rul* **it int*r****. *iv*n t**t Oro*omm*r** us*s Twi* t*mpl*t*s (*ommon in Sym*ony-**s** *ppli**tions), *n* XSS o**urs sp**i*i**lly in t** UPS Sur***r** *i*l*, t** most pro***l* ro