Skip to content

[Security/Http] Fix false-string handling in RememberMeAuthenticator #50582

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

Merged

Conversation

ossinkine
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

I found some errors "No remember-me cookie is found." in my logs. I didn't find another way to reproduce it other than set "false-string" to the cookie value, for example 0.
This PR fixes this.

@ossinkine ossinkine requested review from wouterj and chalasr as code owners June 6, 2023 16:25
@carsonbot carsonbot added this to the 5.4 milestone Jun 6, 2023
@ossinkine ossinkine force-pushed the fix-remember-me-authenticator branch from 9250444 to 34b4fba Compare June 6, 2023 16:27
@OskarStark OskarStark changed the title [Security/Http] Fix false-string handling in RememberMeAuthenticator [Security/Http] Fix false-string handling in RememberMeAuthenticator Jun 7, 2023
@nicolas-grekas
Copy link
Member

That's a bit strange as such values are unexpected in these cookies.
Can you confirm that after this patch the log lines are gone?

@nicolas-grekas nicolas-grekas force-pushed the fix-remember-me-authenticator branch from 34b4fba to 87c2bc2 Compare July 7, 2023 06:45
@nicolas-grekas
Copy link
Member

Thank you @ossinkine.

@nicolas-grekas nicolas-grekas merged commit 17f4fe4 into symfony:5.4 Jul 7, 2023
This was referenced Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants