-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security][bug] Remember-me cookie with custom secure
/httponly
options is not cleared on logout
#14822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
secure
/httponly
optionssecure
/httponly
options is not cleared on logout
Temporary workaround is to add the cookie to I have created a custom class extending What do you propose as the solution? I could make a PR:
Both If the fix was a BC, to which branch should I make a PR? |
…ut() It does work for default values of "secure" and "httponly" options, but it would break if one customized those options. symfony#14822
…y" options * test now always pass those options, as they are required * could be considered BC, but RememberMeFactory passes them, so they should've always been treated as required * symfony#14822
…y" options if they are set * tests show that currently those options might not exist * should not be considered BC? * symfony#14822
…with custom "secure"/"httponly" config options [1] (MacDada) This PR was squashed before being merged into the 2.3 branch (closes #14842). Discussion ---------- [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1] | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14822 | License | MIT | Doc PR | ~ * test now always pass "secure" and "httponly" options, as they are required * could be considered BC, but [`RememberMeFactory` passes them](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php#L21), so they should've always been treated as required * I can squash the commits before merging * Alternative solution: #14843 Commits ------- 18b1c6a [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1]
AbstractRememberMeServices
does not passsecure
/httponly
options when it clears the cookie on logout: https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php#L296Both existing implementations use these options:
The text was updated successfully, but these errors were encountered: