Skip to content

Duplicate pre-auth Session Id same as of already logged in user #16961

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

Open
HavyakaX07 opened this issue Apr 18, 2025 · 0 comments
Open

Duplicate pre-auth Session Id same as of already logged in user #16961

HavyakaX07 opened this issue Apr 18, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@HavyakaX07
Copy link

HavyakaX07 commented Apr 18, 2025

Describe the bug
Spring Security framework has, assigned an identical(duplicate) pre-auth session ID to a user that was same as previously registered for another user. This results in the session ID already existing and matching the session ID from the client, leading to session attributes being copied to the new session without triggering any of the source code of project related to session management. Consequently, the project source code logic for handling the session is bypassed

To Reproduce
It is sporadic issue and there is no specific way to reproduce the issue. But it is occuring nearly when more than 20 users are attempting to login.

Expected behavior
Spring security should not assign the same pre-auth session id as of already logged in user.

Sample*
From application log it is evident that User "17" logged in with session id ending with 0EF

Image

After User 18 attempts to log in, they are assigned a pre-auth session ID identical to User 17's, ending with 0EF. This session ID then changes to one ending with 5BA. Consequently, both User 18 and User 17 communicate with the backend using the same session ID, bypassing the project's source code exception related to session management.

Attached is an image of the application logs that provide proof of this issue during User 18's login.

Image

@HavyakaX07 HavyakaX07 added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant