-
Notifications
You must be signed in to change notification settings - Fork 6k
SEC-2980: Possible race condition in SessionRegistryImpl #3189
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
Labels
in: core
An issue in spring-security-core
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
type: jira
An issue that was migrated from JIRA
Milestone
Comments
To partially overcome this problem I wrapped it with a synchronized decorator as mentioned: #5775 |
jeffrey-easyesi
added a commit
to jeffrey-easyesi/spring-security
that referenced
this issue
Aug 2, 2019
Adding/removing sessions from principals wasn't atomic. If one thread removed the last session from a principal while another thread added a new one, the addition could be lost.
rwinch
pushed a commit
that referenced
this issue
Aug 6, 2019
Adding/removing sessions from principals wasn't atomic. If one thread removed the last session from a principal while another thread added a new one, the addition could be lost. Fixes gh-3189
rwinch
pushed a commit
that referenced
this issue
Aug 6, 2019
Adding/removing sessions from principals wasn't atomic. If one thread removed the last session from a principal while another thread added a new one, the addition could be lost. Fixes gh-3189
kostya05983
pushed a commit
to kostya05983/spring-security
that referenced
this issue
Aug 26, 2019
Adding/removing sessions from principals wasn't atomic. If one thread removed the last session from a principal while another thread added a new one, the addition could be lost. Fixes spring-projectsgh-3189
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: core
An issue in spring-security-core
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
type: jira
An issue that was migrated from JIRA
Selene Feigl (Migrated from SEC-2980) said:
Hello,
there is a possible race condition in SessionRegistryImpl when handling the principals map (principal -> session id)
Result: principals does not contain S2 as it should. If the session registry is used to limit number of sessions per user, the limit is not enforced. If a Spring application uses the SessionRegistry for other things, they won't work as expected. (listing all logged in users etc.)
The text was updated successfully, but these errors were encountered: