Security::login does not take into account custom user_checker in symfony/security-bundle
symfony
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/security-bundle Packagist |
|
|
| symfony/symfony Packagist |
|
|
Original description
symfony/security-bundle is a module for the Symphony PHP framework which provides a tight integration of the Security component into the Symfony full-stack framework. The custom `user_checker` defined on a firewall is not called when Login Programmaticaly with the `Security::login` method, leading to unwanted login. As of versions 6.4.10, 7.0.10 and 7.1.3 the `Security::login` method now ensure to call the configured `user_checker`. All users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record · GitHub_M
References
- github.com/symfony/symfony/security/advisories/GHSA-jxgr-3v7q-3w9v
- github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50341.json
- nvd.nist.gov/vuln/detail/CVE-2024-50341
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2024-50341.yaml
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50341.yaml
- github.com/symfony/symfony
- symfony.com/cve-2024-50341