Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-p62r-7637-3wwc: Laravel Hijacked authentication cookies vulnerability

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
#vulnerability#git#php#auth
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. GHSA-p62r-7637-3wwc

Laravel Hijacked authentication cookies vulnerability

Moderate severity GitHub Reviewed Published May 15, 2024 to the GitHub Advisory Database • Updated May 15, 2024

Package

composer laravel/framework (Composer)

Affected versions

>= 4.0.0, < 4.1.26

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

  • https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2014-04-15.yaml
  • https://laravel.com/docs/5.3/upgrade#upgrade-4.1.26

Published to the GitHub Advisory Database

May 15, 2024

Last updated

May 15, 2024

ghsa: Latest News

GHSA-gppm-hq3p-h4rp: Git credentials are exposed in Atlantis logs