Session security issues
The application and server security requirements I have to deal with have become quite stringent. A recent issue is whether the J2EE session management is secure. My current practice is to use J2EE Session variables for client information that is set upon login, such as name, email, security role, etc..The only cookie I use is the JSESSIONID that is set by Cold Fusion. In application.cfm, I compare the value of the COOKIE.JSESSIONID to that of the SESSION.sessionid that Cold Fusion sets (because sessionmanagement is set to true). If the values are not identical, the programming considers the user to be not logged in, clears all variables and relocates them to the home page to start all over.
But it is possible for an attacker to somehow get the value of a currently active sessionid and forge the COOKIE.JSESSIONID value to match.
Any thoughts?
