Advisory

GHSA-3gv2-29qc-v67m

Also known as: BIT-symfony-2022-24895, CVE-2022-24895

Summary

Symfony vulnerable to Session Fixation of CSRF tokens

Details

Description
-----------

When authenticating users Symfony by default regenerates the session ID upon login, but preserves the rest of session attributes. Because this does not clear CSRF tokens upon login, this might enables same-site attackers to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation.

Resolution
----------

Symfony removes all CSRF tokens from the session on successful login.

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

Credits
-------

We would like to thank Marco Squarcina for reporting the issue and Nicolas Grekas for fixing it.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-02-01 18:48 UTC
Modified
2025-02-13 18:50 UTC

Affected packages and fixes

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 4.4.50 (ecosystem)

Fixed versions

4.4.50

Fix

The export has no generic command for this ecosystem.

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.4.20 (ecosystem)

Fixed versions

5.4.20

Fix

The export has no generic command for this ecosystem.

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.0.20 (ecosystem)

Fixed versions

6.0.20

Fix

The export has no generic command for this ecosystem.

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 6.1.0, fixed 6.1.12 (ecosystem)

Fixed versions

6.1.12

Fix

The export has no generic command for this ecosystem.

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 6.2.0, fixed 6.2.6 (ecosystem)

Fixed versions

6.2.6

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 4.4.50 (ecosystem)

Fixed versions

4.4.50

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.4.20 (ecosystem)

Fixed versions

5.4.20

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.0.20 (ecosystem)

Fixed versions

6.0.20

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.1.0, fixed 6.1.12 (ecosystem)

Fixed versions

6.1.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.2.0, fixed 6.2.6 (ecosystem)

Fixed versions

6.2.6

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