Miggo Logo

CVE-2020-29470: OpenCart Cross-site Scripting (XSS) in the Subject field of mail.

4.8

CVSS Score
3.1

Basic Information

EPSS Score
0.37158%
Published
5/24/2022
Updated
4/23/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
opencart/opencartcomposer= 3.0.3.6

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability occurs in the email sending functionality handled by marketing/contact controller. The exploit demonstrates XSS payload injection through the subject parameter in POST requests to /admin/index.php?route=marketing/contact/send. The controller's send method likely directly uses unsanitized user input from the 'subject' parameter when constructing emails, without applying HTML entity encoding or other XSS protections before outputting in email content. This matches the described attack vector where stored XSS triggers when viewing the email.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Op*n**rt *.*.*.* is *****t** *y *ross-sit* s*riptin* (XSS) in t** Su*j**t *i*l* o* m*il. T*is vuln*r**ility **n *llow *n *tt**k*r to inj**t t** XSS p*ylo** in t** Su*j**t *i*l* o* t** m*il *n* **** tim* *ny us*r will op*n t**t m*il o* t** w**sit*, t*

Reasoning

T** vuln*r**ility o**urs in t** *m*il s*n*in* *un*tion*lity **n*l** *y m*rk*tin*/*ont**t *ontroll*r. T** *xploit **monstr*t*s XSS p*ylo** inj**tion t*rou** t** su*j**t p*r*m*t*r in POST r*qu*sts to `/**min/in**x.p*p?rout*=m*rk*tin*/*ont**t/s*n*`. T**