A new session identifier should be issued on login
According to the security audit a new session identifier should be issued on login to prevent Session Fixation.
PR: https://github.com/dotCMS/core/pull/15896
Notes to @john-thomas-dotcms - this new behavior is the default, but it can be disabled if issues arise by setting PREVENT_SESSION_FIXATION_ON_LOGIN=false in the dotmarketing-config.properties
Tested on the last master // Oracle // FF... Ant those are the results:
- [ ] Tested injecting an existing session_id in a the autentificationAPI request. We are invalidating the current session and create a new one.
FYI: If you use the session_id from any browser and send this in the API request when you refresh the browser page, the access_token is creating a new session. If you delete the access token and try again we are redirecting to the login page
- [ ] In case you try with another endpoint we are authenticating in another place because we never use the new logic. I think we need to unify the authentification method.
This is two parts - the first for user login which is in 5.1 and the second for api based logins which is slated for 5.1.1
See: #11969