Advisory

GHSA-p62r-7637-3wwc

Also known as: None

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.

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-15 22:06 UTC
Modified
2024-11-29 05:26 UTC

Affected packages and fixes

laravel/framework

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.1.26 (ecosystem)

Fixed versions

4.1.26

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences