Advisory

GHSA-vvmr-8829-6whx

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

Summary

CSRF token missing in Symfony

Details

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

The Symfony form component provides a CSRF protection mechanism by using a random token injected in the form and using the session to store and control the token submitted by the user.
When using the FrameworkBundle, this protection can be enabled or disabled with the configuration. If the configuration is not specified, by default, the mechanism is enabled as long as the session is enabled.

In a recent change in the way the configuration is loaded, the default behavior has been dropped and, as a result, the CSRF protection is not enabled in form when not explicitly enabled, which makes the application sensible to CSRF attacks.

Resolution
----------

Symfony restored the default configuration to enable the CSRF protection by default.

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

Credits
-------

We would like to thank Catalin Dan and David Lochner for reporting the issue and Jérémy Derussé for fixing the issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-02-01 00:46 UTC
Modified
2024-04-22 19:02 UTC

Affected packages and fixes

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 5.3.14, fixed 5.3.15 (ecosystem)

Fixed versions

5.3.15

Fix

The export has no generic command for this ecosystem.

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 5.4.3, fixed 5.4.4 (ecosystem)

Fixed versions

5.4.4

Fix

The export has no generic command for this ecosystem.

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 6.0.3, fixed 6.0.4 (ecosystem)

Fixed versions

6.0.4

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