Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. illuminate/auth
  4. ›
  5. GHSA-q4xf-7fw5-4x8v

GHSA-q4xf-7fw5-4x8v: Laravel Hijacked authentication cookies vulnerability

May 15, 2024

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/auth/2014-04-15.yaml
  • github.com/advisories/GHSA-q4xf-7fw5-4x8v
  • github.com/illuminate/auth
  • laravel.com/docs/5.1/upgrade

Code Behaviors & Features

Detect and mitigate GHSA-q4xf-7fw5-4x8v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.1.26

Fixed versions

  • 4.1.26

Solution

Upgrade to version 4.1.26 or above.

Weakness

  • CWE-384: Session Fixation

Source file

packagist/illuminate/auth/GHSA-q4xf-7fw5-4x8v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.