GitHub Advisory Database
GHSA-rc8x-jrrc-frfv
Laravel does not properly constrain the host portion of a password-reset URL
Details
Laravel 5.4.x before 5.4.22 does not properly constrain the host portion of a password-reset URL, which makes it easier for remote attackers to conduct phishing attacks by specifying an attacker-controlled host.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | laravel/laravel | From 5.4.0 before 5.4.22 (fixed in 5.4.22) |
| Packagist | illuminate/auth | From 5.3.0 up to and including 5.3.31 |
| Packagist | illuminate/auth | From 5.4.0 before 5.4.22 (fixed in 5.4.22) |
| Packagist | laravel/framework | From 5.3.0 up to and including 5.3.31 |
| Packagist | laravel/framework | From 5.4.0 before 5.4.22 (fixed in 5.4.22) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-9303
- https://github.com/laravel/framework/commit/cef10551820530632a86fa6f1306fee95c5cac43
- https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/auth/CVE-2017-9303.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2017-9303.yaml
- https://laravel-news.com/laravel-5-4-22-is-now-released-and-includes-a-security-fix
- https://laravel.com/docs/5.4/releases#laravel-5.4.22
- https://web.archive.org/web/20171021180417/http://www.securityfocus.com/bid/98776
- http://www.securityfocus.com/bid/98776