Advisory

GHSA-cg23-qf8f-62rr

Also known as: CVE-2024-51996

Summary

Symfony has an Authentication Bypass via RememberMe

Details

Description

When consuming a persisted remember-me cookie, Symfony does not check if the username persisted in the database matches the username attached with the cookie, leading to authentication bypass.

Resolution

The PersistentRememberMeHandler class now ensures the submitted username is the cookie owner.

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Moritz Rauch - Pentryx AG for reporting the issue and Jérémy Derussé for providing the fix.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-13 18:29 UTC
Modified
2024-11-15 00:00 UTC

Affected packages and fixes

symfony/security-http

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.4.47 (ecosystem)

Fixed versions

5.4.47

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 6.0.0-BETA1, fixed 6.4.15 (ecosystem)

Fixed versions

6.4.15

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 7.0.0-BETA1, fixed 7.1.8 (ecosystem)

Fixed versions

7.1.8

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