-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Spring session fixation&stale session issues (#52)
Two problems solved: - Fix session fixation vulnerability - Fix stale Hazelcast session issue Session fixation vulnerability occurred with Spring Security MVC as it used isRequestedSessionIdValid method on HttpServletRequest interface which was not implemented before this commit. Stale Hazelcast session issue occurs when a request comes in with a valid JSESSIONID and a hazelcast.sessionId that corresponds to another Hazelcast session. In this case, we just used the existing session and used the incoming JSESSIONID to find the corresponding hazelcast.sessionId and Hazelcast session. Now we let the incoming hazelcast.sessionId to override the hazelcast.sessionId that corresponds to the request's JSESSIONID. Fix #47
- Loading branch information
1 parent
7bda7b0
commit 73d7e7e
Showing
2 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters