Miggo Logo

CVE-2019-7857: Magento Cross-Site Request Forgery (CSRF)

4.3

CVSS Score
3.0

Basic Information

EPSS Score
0.07392%
Published
5/24/2022
Updated
2/12/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
magento/community-editioncomposer>= 2.2.0, < 2.2.92.2.9
magento/community-editioncomposer>= 2.1.0, < 2.1.182.1.18
magento/community-editioncomposer>= 2.3.0, < 2.3.22.3.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insufficient CSRF protection in cart modification endpoints. The primary vulnerable function is the Add controller's execute method, which handles cart additions. Magento's CSRF protection typically uses form key validation, and the absence of proper validation in this critical path would allow CSRF attacks. The secondary candidate relates to the framework's URL processing that might improperly bypass CSRF checks. Confidence is high for the Add controller as it's directly responsible for the vulnerable functionality, and medium for the framework component as it's a more generalized system.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* *ross-sit* r*qu*st *or**ry vuln*r**ility in M***nto *.* prior to *.*.**, M***nto *.* prior to *.*.*, M***nto *.* prior to *.*.* **n **us* unw*nt** it*ms to ** ***** to * s*opp*r's **rt *u* to *n insu**i*i*ntly ro*ust *nti-*SR* tok*n impl*m*nt*tion.

Reasoning

T** vuln*r**ility st*ms *rom insu**i*i*nt *SR* prot**tion in **rt mo*i*i**tion *n*points. T** prim*ry vuln*r**l* *un*tion is t** `***` *ontroll*r's `*x**ut*` m*t*o*, w*i** **n*l*s **rt ***itions. M***nto's *SR* prot**tion typi**lly us*s *orm k*y v*li