GHSA-vvmr-8829-6whx
CSRF token missing in Symfony
Quick fix
GHSA-vvmr-8829-6whx — symfony/framework-bundle: upgrade to the fixed version with the command below.
composer require symfony/framework-bundle:^5.3.15Details
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](https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
5.3.14Fixed in: 5.3.15composer require symfony/framework-bundle:^5.3.155.4.3Fixed in: 5.4.4composer require symfony/framework-bundle:^5.4.46.0.3Fixed in: 6.0.4composer require symfony/framework-bundle:^6.0.4References
- https://github.com/symfony/symfony/security/advisories/GHSA-vvmr-8829-6whx[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-23601[ADVISORY]
- https://github.com/symfony/symfony/commit/f0ffb775febdf07e57117aabadac96fa37857f50[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2022-23601.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-23601.yaml[WEB]
- https://github.com/symfony/symfony[WEB]
- https://symfony.com/cve-2022-23601[WEB]