GHSA-p62r-7637-3wwc: Laravel/framework Laravel Hijacked Authentication Cookies Vulnerability Vulnerability
MODERATEGHSA-p62r-7637-3wwc is a MODERATE laravel hijacked authentication cookies vulnerability vulnerability (CWE-384: Session Fixation) affecting Laravel/framework 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-p62r-7637-3wwc at a Glance
How to Fix GHSA-p62r-7637-3wwc
To remediate this vulnerability, upgrade all affected Laravel/framework 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 laravel/framework 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 laravel/framework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-p62r-7637-3wwc, inspect your project dependencies for Laravel/framework:
inspect dependencies for laravel/framework
Analyze the terminal output to locate any version of Laravel/framework 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 Laravel/framework, 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-p62r-7637-3wwc Affected Laravel/framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≥ 4.0.0
< 4.1.26
|
4.1.26
|
References
Frequently Asked Questions
What is GHSA-p62r-7637-3wwc?
Which Laravel/framework versions are affected?
What version fixes GHSA-p62r-7637-3wwc?
Is laravel/framework affected?
What CWE is associated with GHSA-p62r-7637-3wwc?
How can I check Packagist dependencies for GHSA-p62r-7637-3wwc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p62r-7637-3wwc",
"modified" : "2024-05-15T22:06:42Z",
"published" : "2024-05-15T22:06:42Z",
"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" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.26"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2014-04-15.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
}, {
"type" : "WEB",
"url" : "https://laravel.com/docs/5.3/upgrade#upgrade-4.1.26"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-384" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:06:42Z",
"nvd_published_at" : null
}
}