I have an application in grails using spring-security for users and roles management. Since, past few days I am facing a strange issue: When one user logs in at some point the users becomes another user (session mix up).
Example: User A logs in to system, User B logs in to system from another browser, when moving through controller actions, at some random point User A becomes User B in User A system, same with User B, too.
This issue is in PRODUCTION and not development.
I have found some of similar cases over internet but none of grails. Spring Security/JSF/Hibernate Accidental Session Hijacking on Tomcat?, this similar one but in jsf and solution mentioned does not seem to work for me. Another one is Session mix up - apache httpd with mod_jk, tomcat, spring security - serving data of other user but here issue seems to be because of mod_jk which is not the case for me (I have not used mod_jk).
My system versions:
- Grails Version: 3.2.4
- Groovy Version: 2.4.7
- JVM Version: 1.8.0_05
- Server version: Apache Tomcat/8.5.14
- JVM Version: 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13