Our security team ran a scan that tells us that we're vulnerable to session fixation and the docs tells us that in tomcat we should use the changeSessionIdOnAuthentication setting in context.xml.
What would be the equivalent move in WebSphere 8.5?
Our security team ran a scan that tells us that we're vulnerable to session fixation and the docs tells us that in tomcat we should use the changeSessionIdOnAuthentication setting in context.xml.
What would be the equivalent move in WebSphere 8.5?
I had the same issue with WAS 8.5. Ended up using spring security to configure the session fixation issue.
<security:session-management invalid-session-url="/login" session-authentication-error-url="/login" session-fixation-protection="newSession">
<security:concurrency-control error-if-maximum-exceeded="true" max-sessions="1" expired-url="/login"/>
WebSphere 8.5 is using a servlet api version that is < 3.1, therefore you can't use changeSessionId() method of HttpServlet Request.
What you can do instead is, at the point where you are authenticating your user in your application, probably, attemptAuthentication() or similar methods, you can do:
HttpSession session = request.getSession(false);
if(session != null)
session.invalidate();
session = request.getSession();
The above provides protection against session fixation attack.