GHSA-7fjv-25q9-2w88: State Guessing Vulnerability in laravel/socialite
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
5/15/2024
Updated
5/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| laravel/socialite | composer | >= 1.0.0, < 2.0.10 | 2.0.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper state parameter handling in OAuth flow. The key change in the patch replaces session->get() with session->pull() in the hasInvalidState method. get() leaves the state in the session, allowing attackers to bypass single-use protection through brute-force guessing. The vulnerable function's logic (checking input against a persistent session value) directly enabled this weakness. The test case modifications and commit message explicitly reference this state management fix as the security resolution.