-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] logout remember_me user that has changed #24525
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
How exactly is the user changed? |
The user is disabled. I am using the |
I attempted a fix in PR #24536. I think it might be a BC break so I could use some help to eliminate that. |
I ended up going a different direction with #24536. The user in |
…e::checkPostAuth() fails (kbond) This PR was merged into the 2.7 branch. Discussion ---------- [Security] Reject remember-me token if UserCheckerInterface::checkPostAuth() fails | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24525 | License | MIT | Doc PR | - I think this is a security hole - a user can remain logged in with a remember me cookie even though they can no longer pass `UserCheckInterface::checkPostAuth()` (could be disabled). This is a small BC break but shouldn't be an issue as I think it is a bug. I don't think this requires a BC layer but if so, I can add. Commits ------- fe190b6 reject remember-me token if user check fails
Maybe I am doing something wrong as this should be fixed, but I still have this problem using the In my
My security config is pretty basic:
|
@egonolieux please open a new issue if you think that you found a bug, comments on closed tickets aren't tracked. |
With #23882, a session token is logged out when the user has changed but not if you have a remember me token. When visiting a page when logged in after your account has changed, you lose the session token but fallback to an authenticated
RememberMeToken
.Thoughts on how we can fix this?
The text was updated successfully, but these errors were encountered: