Miggo Logo

CVE-2017-9303:
Laravel does not properly constrain the host portion of a password-reset URL

6.1

CVSS Score

Basic Information

EPSS Score
-
Published
5/17/2022
Updated
4/25/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
laravel/laravelcomposer>= 5.4.0, < 5.4.225.4.22
illuminate/authcomposer>= 5.3.0, <= 5.3.31
illuminate/authcomposer>= 5.4.0, < 5.4.225.4.22
laravel/frameworkcomposer>= 5.3.0, <= 5.3.31
laravel/frameworkcomposer>= 5.4.0, < 5.4.225.4.22

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from password reset URLs being generated without host validation. The commit diff shows the critical change from route() to url(config('app.url').route(...)) in ResetPassword.php's toMail method. This indicates the original route() call was vulnerable to host injection. The function's role in constructing password reset links directly matches the vulnerability description of improper host constraint.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

L*r*v*l *.*.x ***or* *.*.** *o*s not prop*rly *onstr*in t** *ost portion o* * p*sswor*-r*s*t URL, w*i** m*k*s it **si*r *or r*mot* *tt**k*rs to *on*u*t p*is*in* *tt**ks *y sp**i*yin* *n *tt**k*r-*ontroll** *ost.

Reasoning

T** vuln*r**ility st*ms *rom p*sswor* r*s*t URLs **in* **n*r*t** wit*out *ost v*li**tion. T** *ommit *i** s*ows t** *riti**l ***n** *rom rout*() to url(*on*i*('*pp.url').rout*(...)) in R*s*tP*sswor*.p*p's toM*il m*t*o*. T*is in*i**t*s t** ori*in*l ro