VDB
Sign up
MEDIUM

GHSA-p62r-7637-3wwc

Laravel Hijacked authentication cookies vulnerability

Quick fix

GHSA-p62r-7637-3wwc — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^4.1.26

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.

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 4.0.0Fixed in: 4.1.26
Fixcomposer require laravel/framework:^4.1.26

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/laravel/framework"]}'