CVE-2017-5594: Pagekit Weak Password Recovery Mechanism for Forgotten Password
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.92406%
CWE
Published
5/13/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pagekit/pagekit | composer | < 1.0.11 | 1.0.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues in password reset flow: 1) requestAction
generated and stored activation tokens before completing email delivery, exposing them via debug toolbar. 2) confirmAction
relied solely on URL parameters without session binding, allowing token reuse. The patch added session-based state tracking (App::session()->set('activation')
) and moved key generation after email sending. The exploit script demonstrates attackers could harvest reset tokens from debug endpoints, which were available due to these flawed functions.