GHSA-q4xf-7fw5-4x8v: Illuminate/auth Laravel Hijacked Authentication Cookies Vulnerability Vulnerability

MODERATE
CWE-384
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-q4xf-7fw5-4x8v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-384: Session Fixation
Affected Product Illuminate/auth
Package Ecosystem Packagist
Published Date
Last Updated

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.

illuminate/auth fixed: 4.1.26
Upgrade illuminate/auth to 4.1.26
Verify Direct and Transitive Dependencies

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

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. This 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.

GHSA-q4xf-7fw5-4x8v Affected Illuminate/auth Versions

1 component(s)
Fixed Versions:
4.1.26
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?
GHSA-q4xf-7fw5-4x8v is a security vulnerability in Illuminate/auth involving Laravel Hijacked authentication cookies vulnerability under CWE-384: Session Fixation.
Which Illuminate/auth versions are affected?
Affected versions include releases prior to 4.1.26 across affected packages: illuminate/auth.
What version fixes GHSA-q4xf-7fw5-4x8v?
Upgrading to 4.1.26 (or the latest patched release for your respective branch) resolves the vulnerability.
Is illuminate/auth affected?
Yes, illuminate/auth is affected in releases prior to 4.1.26. Upgrade your dependency to 4.1.26 or later.
What CWE is associated with GHSA-q4xf-7fw5-4x8v?
GHSA-q4xf-7fw5-4x8v is classified under CWE-384: Session Fixation (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.).
How can I check Packagist dependencies for GHSA-q4xf-7fw5-4x8v?
Run the dependency tree command: 'inspect dependencies for illuminate/auth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}