CVE-2021-41268: Cookie persistence in Symfony
CVE-2021-41268: Remember me cookie persistance after password changes
Other sources
Description -----------
Since the rework of the Remember me cookie in Symfony 5.3, the cookie is not invalidated anymore when the user changes its password.
Attackers can therefore maintain their access to the account even if the password is changed as long as they have had the chance to login once and get a valid remember me cookie.
Resolution ----------
Symfony now makes the password part of the signature by default. In that way, when the password changes then the cookie is not valid anymore.
The patch for this issue is available here for branch 5.3.
Credits -------
We would like to thank Thibaut Decherit for reporting the issue and Wouter J for fixing the issue.
— GitHub
Symfony/SecurityBundle is the security system for Symfony, a PHP framework for web and console applications and a set of reusable PHP components. Since the rework of the Remember me cookie in version 5.3.0, the cookie is not invalidated when the user changes their password. Attackers can therefore maintain their access to the account even if the password is changed as long as they have had the chance to login once and get a valid remember me cookie. Starting with version 5.3.12, Symfony makes the password part of the signature by default. In that way, when the password changes, then the cookie is not valid anymore.
— MITRE
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-41268?
CVE-2021-41268 is a vulnerability in the Symfony/SecurityBundle that allows the Remember me cookie to persist after password changes.
How does CVE-2021-41268 affect Symfony?
CVE-2021-41268 affects Symfony version 5.3.0 up to version 5.3.12.
What is the severity of CVE-2021-41268?
The severity of CVE-2021-41268 is high, with a severity score of 8.8.
How can attackers exploit CVE-2021-41268?
Attackers can exploit CVE-2021-41268 by taking advantage of the Remember me cookie not being invalidated when a user changes their password.
Is there a fix available for CVE-2021-41268?
Yes, a fix for CVE-2021-41268 is available in the Symfony framework, with commits and pull requests available on GitHub.