CVE-2022-23601 CSRF token missing in Symfony
- Published
- Updated
- Exploit status
- Proof-of-concept only
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. 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. This issue has been resolved in the patch versions listed and users are advised to update. There are no known workarounds for this issue.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| symfony/framework-bundle(Packagist) | >= 5.3.14, < 5.3.15 | 5.3.15 |
| symfony/framework-bundle(Packagist) | = 5.3.14 | No fix listed |
| symfony/framework-bundle(Packagist) | = v5.3.14 | No fix listed |
| symfony/framework-bundle(Packagist) | >= 5.4.3, < 5.4.4 | 5.4.4 |
| symfony/framework-bundle(Packagist) | = 5.4.3 | No fix listed |
| symfony/framework-bundle(Packagist) | = v5.4.3 | No fix listed |
| symfony/framework-bundle(Packagist) | >= 6.0.3, < 6.0.4 | 6.0.4 |
| symfony/framework-bundle(Packagist) | = 6.0.3 | No fix listed |
| symfony/framework-bundle(Packagist) | = v6.0.3 | No fix listed |
| symfony/symfony | = 5.3.14 | No fix listed |
| symfony/symfony | = 5.4.3 | No fix listed |
| symfony/symfony | = 6.0.3 | No fix listed |
| sensiolabs symfony | < 5.3.15 | 5.3.15 |
| sensiolabs symfony | >= 5.4.0, < 5.4.4 | 5.4.4 |
| sensiolabs symfony | >= 6.0.0, < 6.0.4 | 6.0.4 |
References
- github.com patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com exploit
- github.com exploit
- github.com
- symfony.com
- Debian Security Tracker CVE-2022-23601 vendor-advisory
- github.com