-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Refreshed RememberMe cookie contains invalid data #41891
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
Could you check if #41741 fixes your issue? 8000 p> |
With #41741 this issue is still there. |
It seems that in (or this might not be relevant at all) |
I think I found the culprit, in symfony/src/Symfony/Component/Security/Http/RememberMe/PersistentRememberMeHandler.php Lines 91 to 101 in 1eb5b35
symfony/src/Symfony/Component/Security/Http/RememberMe/PersistentRememberMeHandler.php Lines 56 to 58 in 1eb5b35
|
I can provide a patch for this. |
… cookie (qurben) This PR was merged into the 5.3 branch. Discussion ---------- [Security] fix #41891 Save hashed tokenValue in RememberMe cookie | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #41891 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT The hashed tokenValue is expected in the RememberMe cookie. This was not the case when this branch was executed. <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry --> Commits ------- 9ccaa93 [Security] fix #41891 Save hashed tokenValue in RememberMe cookie
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.3.2 (with symfony/security-http 5.3.x-dev 81c183fd1527a2d09bd3b5c69bca3fc24ce18527 for another fix in rememberme)
Description
The rememberme cookie returned when a rememberme session is renewed is not properly formatted. This causes it to be rejected when it is used again.
How to reproduce
Possible Solution
I pulled two cookies from my installation (a development version, see Additional context), the first one is the original REMEMBERME cookie and the second one is the one received after refreshing. In the first one the last value is base64 encoded and in the second one it isn't.
(originally I had these two mixed up)
Additional context
The text was updated successfully, but these errors were encountered: