Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security\Http] Prevent canceled remember-me cookie from being accepted #35239

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
merged 1 commit into from
Jan 8, 2020

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jan 6, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #35198
License MIT
Doc PR -

RememberMeServices::autoLogin() only checks that the cookie exists in $request->cookies while loginFail() only alter $request->attributes (which allows child implementations to read the canceled cookie for e.g. removing a persistent one).
This makes autoLogin() checks for request->attributes first, which fixes the linked issue.

Failure expected on deps=high build.

@nicolas-grekas
Copy link
Member

Thank you @chalasr.

nicolas-grekas added a commit that referenced this pull request Jan 8, 2020
…eing accepted (chalasr)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security\Http] Prevent canceled remember-me cookie from being accepted

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #35198
| License       | MIT
| Doc PR        | -

`RememberMeServices::autoLogin()` only checks that the cookie exists in `$request->cookies` while `loginFail()` only alter `$request->attributes` (which allows child implementations to read the canceled cookie for e.g. removing a persistent one).
This makes `autoLogin()` checks for `request->attributes` first, which fixes the linked issue.

Failure expected on deps=high build.

Commits
-------

9b711b8 [Security] Prevent canceled remember-me cookie from being accepted
@nicolas-grekas nicolas-grekas merged commit 9b711b8 into symfony:3.4 Jan 8, 2020
@chalasr chalasr deleted the skip-rememberme-deauth branch January 8, 2020 19:17
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