CVE-2022-xxxx: CSRF token missing in forms

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-xxxx-csrf-token-missing-in-forms?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Établi 3y | 29 janv. 2022, 19:20:19


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Symfony meetup: Join Nicolas Grekas in Tunis on April 12th!

Nous sommes heureux de vous annoncer le retour des meetups Symfony à Tunis !🎉 Rejoignez dès maintenant le groupe "Symfony User group Tunis" pour suivre les actualités et futurs meetup de la communauté

2 avr. 2025, 07:10:06 | Symfony
A Week of Symfony #952 (March 24–30, 2025)

This week, Symfony 6.4.20 and 7.2.5 maintenance versions were released. In addition, Symfony successfully celebrated the SymfonyLive Paris 2025 conference and continued preparations for next week's Sy

30 mars 2025, 09:30:09 | Symfony
Symfony 6.4.20 released

Symfony 6.4.20 has just been released. Here is the list of the most important changes since 6.4.19:

bug #60054 [Form] Use duplicate_preferred_choices to set value of ChoiceType (@aleho)

bug #5985

28 mars 2025, 15:40:28 | Symfony
Symfony 7.2.5 released

Symfony 7.2.5 has just been released. Here is the list of the most important changes since 7.2.4:

bug #60054 [Form] Use duplicate_preferred_choices to set value of ChoiceType (@aleho)

bug #60026

28 mars 2025, 15:40:27 | Symfony
SymfonyLive Berlin 2025 starts in a week!

SymfonyLive Berlin 2025 is almost here! Join us next week for an exciting event filled with fresh talks, inspiring speakers, and everything you need to make the most of this incredible gatheri

26 mars 2025, 08:10:11 | Symfony
New Core Team Member, Symfony CLI

After announcing the Symfony UX Core Team and adding more core team members earlier this year, I'm back again with a great addition to the Symfony Core Team. I'm very excited to announce that Tugdual

24 mars 2025, 16:40:18 | Symfony
A Week of Symfony #951 (March 17–23, 2025)

This week, the upcoming Symfony 7.3 version updated its default configuration to exclude container extensions, entities and messenger messages when registering services, and made some changes related

23 mars 2025, 10:40:03 | Symfony