symfony/security-http is vulnerable to Authentication Bypass Using an Alternate Path or Channel
23
CVE Score
Low
Authentication Bypass Using an Alternate Path or Channel
Before the fix, authenticateUser(), reached through Security::login() and UserAuthenticatorInterface::authenticateUser(), stored the login token without dispatching AuthenticationSuccessEvent, so a custom user checker's checkPostAuth() never ran on programmatic logins. An account a checker rejected in checkPostAuth(), such as an expired account, was refused by form login but still logged in by a registration, password-reset or email-verification controller calling these methods. On Symfony 5.4, the default user checker also rejects expired credentials for the deprecated User class; other applications need a custom checker rejecting in checkPostAuth() to be affected. The fix dispatches AuthenticationSuccessEvent before storing the token, so a checker rejection now throws out of the programmatic login.
Upgrade the symfony/security-http and/or symfony/symfony package to a fixed release on your branch: 5.4.56, 6.4.50, 7.4.23, 8.1.11.
You are affected if you use a version in the vulnerable range and log users in programmatically with Security::login() or authenticateUser() when a custom user checker rejects them in checkPostAuth(), or when using Symfony 5.4's deprecated User class with expired credentials.
5.1.0 - 5.4.55
Fixed in 5.4.566.0.0 - 6.4.49
Fixed in 6.4.507.0.0 - 7.4.22
Fixed in 7.4.238.0.0 - 8.1.10
Fixed in 8.1.11symfony/security-http is vulnerable to Authentication Bypass Using an Alternate Path or Channel in versions 5.1.0 - 5.4.55, 6.0.0 - 6.4.49, 7.0.0 - 7.4.22 and 8.0.0 - 8.1.10.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.