GHSA-q4xf-7fw5-4x8v: Illuminate/auth Laravel Hijacked Authentication Cookies Vulnerability Vulnerability
MODERATEGHSA-q4xf-7fw5-4x8v is a MODERATE laravel hijacked authentication cookies vulnerability vulnerability (CWE-384: Session Fixation) affecting Illuminate/auth libraries in the Packagist ecosystem. The issue involves laravel hijacked authentication cookies vulnerability. Remediation is available by upgrading affected packages to version 4.1.26.
GHSA-q4xf-7fw5-4x8v at a Glance
How to Fix GHSA-q4xf-7fw5-4x8v
To remediate this vulnerability, upgrade all affected Illuminate/auth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade illuminate/auth to 4.1.26
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for illuminate/auth
How to Check if You Are Affected
To determine whether your application is affected by GHSA-q4xf-7fw5-4x8v, inspect your project dependencies for Illuminate/auth:
inspect dependencies for illuminate/auth
Analyze the terminal output to locate any version of Illuminate/auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.26), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. In Illuminate/auth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-q4xf-7fw5-4x8v Affected Illuminate/auth Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
illuminate/auth
|
Packagist |
≥ 4.0.0
< 4.1.26
|
4.1.26
|
References
Frequently Asked Questions
What is GHSA-q4xf-7fw5-4x8v?
Which Illuminate/auth versions are affected?
What version fixes GHSA-q4xf-7fw5-4x8v?
Is illuminate/auth affected?
What CWE is associated with GHSA-q4xf-7fw5-4x8v?
How can I check Packagist dependencies for GHSA-q4xf-7fw5-4x8v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q4xf-7fw5-4x8v",
"modified" : "2024-05-15T21:50:28Z",
"published" : "2024-05-15T21:50:28Z",
"aliases" : [ ],
"summary" : "Laravel Hijacked authentication cookies vulnerability",
"details" : "Laravel 4.1.26 introduces security improvements for \"remember me\" cookies. Before this update, if a remember cookie was hijacked by another malicious user, the cookie would remain valid for a long period of time, even after the true owner of the account reset their password, logged out, etc.\n\nThis change requires the addition of a new remember_token column to your users (or equivalent) database table. After this change, a fresh token will be assigned to the user each time they login to your application. The token will also be refreshed when the user logs out of the application. The implications of this change are: if a \"remember me\" cookie is hijacked, simply logging out of the application will invalidate the cookie.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "illuminate/auth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.26"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/auth/2014-04-15.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/illuminate/auth"
}, {
"type" : "WEB",
"url" : "https://laravel.com/docs/5.1/upgrade#upgrade-4.1.26"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-384" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:50:28Z",
"nvd_published_at" : null
}
}