CVE-2022-23601: CSRF token missing in forms

Affected versions Symfony 5.3.14, 5.4.3, and 6.0.3 versions of the Symfony Framework Bundle is affected by this security issue. The issue has been fixed in Symfony 5.3.15, 5.4.4, and 6.0.4.

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.

                Sponsor the Symfony project.

https://symfony.com/blog/cve-2022-23601-csrf-token-missing-in-forms?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Created 3y | Jan 31, 2022, 3:20:20 PM


Login to add comment

Other posts in this group

SymfonyDay Chicago 2025 - The full schedule is live!

Mark your calendars for March 17, 2025 because SymfonyDay Chicago 2025 is shaping up to be an unmissable event! This full-day conference is dedicated to celebrating the amazing contributions o

Feb 5, 2025, 3:20:20 PM | Symfony
SymfonyLive Paris 2025 : Développer avec API Platform 4, ça change quoi ?

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

Al

Feb 4, 2025, 9:20:06 AM | Symfony
SymfonyLive Berlin 2025: Where have the women of tech history gone?

SymfonyLive Berlin 2025, conference held in English, will take place from April 1 to 4! The schedule is being revealed gradually. More details are available here.

As we are now unveiling th

Feb 3, 2025, 2:40:15 PM | Symfony
A Week of Symfony #944 (27 January - 2 February 2025)

This week, Symfony released maintenance versions 6.4.18, 7.1.11 and 7.2.3. In addition, Twig published a security advisory and we shared several updates about upcoming Symfony conferences. Lastly, Sym

Feb 2, 2025, 10:50:16 AM | Symfony
Back on the inspiring SymfonyCon Vienna 2024!

We were absolutely thrilled to gather with the incredible Symfony community for the first time in Vienna, Austria, from December 5th to 6th, surrounded by the warm and festive atmosphere of the

Jan 31, 2025, 12:30:18 PM | Symfony
SymfonyLive Paris 2025 : Reveal of workshop topics!

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

💻

Jan 30, 2025, 8:50:03 AM | Symfony
Get Symfony news on your favorite social network

Symfony has been active on X, Mastodon, and Bluesky for some time, but until recently, not all platforms received equal attention. Since Twitter (now X) was our first social network, all blog posts we

Jan 29, 2025, 2:20:10 PM | Symfony