Symfony's `Security::login` does not take into account custom `user_checker`
Description
Published to the GitHub Advisory Database
Nov 6, 2024
Reviewed
Nov 6, 2024
Published by the National Vulnerability Database
Nov 6, 2024
Last updated
Nov 6, 2024
Description
The custom
user_checker
defined on a firewall is not called when Login Programmaticaly with theSecurity::login
method, leading to unwanted login.Resolution
The
Security::login
method now ensure to call the configureduser_checker
.The patch for this issue is available here for branch 6.4.
Credits
We would like to thank Oleg Andreyev, Antoine MAKDESSI for reporting the issue and Christian Flothmann for providing the fix.
References