Miggo Logo

CVE-2023-34099:
Shopware improper mail validation vulnerability

5.3

CVSS Score

Basic Information

EPSS Score
-
Published
6/28/2023
Updated
11/10/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
shopware/shopwarecomposer>= 5.1.4, <= 5.7.175.7.18

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from Shopware's custom email validation regex that was replaced with PHP's built-in FILTER_VALIDATE_EMAIL in the patched version. The original regex only checked for basic email format (non-whitespace@non-whitespace.non-whitespace), which failed to account for various valid email formats and normalization scenarios. This allowed attackers to create multiple accounts with different email strings that resolve to the same address when normalized. The commit diff clearly shows this function was modified to address the vulnerability, and the CWE-754 (Improper Check for Unusual Conditions) directly maps to this insufficient validation logic.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** m*il v*li**tion in t** r**istr*tion pro**ss *** som* *l*ws, so it w*s possi*l* to *onstru*t *i***r*nt m*il ***r*ss*s, t**t in t** *n* r*sult in t** s*m* ***r*ss, w*i** is s**r** *y multipl* ***ounts. ### P*t***s W* r**omm*n* up**tin*

Reasoning

T** vuln*r**ility st*mm** *rom S*opw*r*'s *ustom *m*il v*li**tion r***x t**t w*s r*pl**** wit* P*P's *uilt-in *ILT*R_V*LI**T*_*M*IL in t** p*t**** v*rsion. T** ori*in*l r***x only ****k** *or **si* *m*il *orm*t (non-w*it*sp***@non-w*it*sp***.non-w*it