AnsweredAssumed Answered

Strange behaviour with JSESSIONID creating Session Fixation issue

Question asked by hiten.rastogi on May 10, 2018
Latest reply on May 11, 2018 by afaust



After adding an OOTB evaluator group.module.evaluator in my extension module for hiding Create Site option for non admin user, which BTW works fine, I can see that there is a change in the way JSESSIONID is created.


In normal standalone share project JSESSIONID is created when the user logs in and refreshes on every login but after adding the above evaluator I can see the JSESSIONID is getting created the moment I hit the login page and it stays there even after the login but refreshes on every logout.


I did some digging into the Alfresco code for the evaluator bean and found out that isMemberOfGroups method of the SlingshotEvaluatorUtil class called from the SlingshotGroupModuleEvaluator class creates a session for storing the GROUP membership in the session.


Now this behaviour creates a Session Fixation issue that permits an attacker to hijack a valid user session.


Can anyone please suggest what can be done here ??




Hiten Rastogi