core icon indicating copy to clipboard operation
core copied to clipboard

A new session identifier should be issued on login

Open hmboonstra opened this issue 12 years ago • 5 comments

According to the security audit a new session identifier should be issued on login to prevent Session Fixation.

hmboonstra avatar Oct 22 '14 09:10 hmboonstra

PR: https://github.com/dotCMS/core/pull/15896

jgambarios avatar Jan 28 '19 19:01 jgambarios

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

wezell avatar Jan 28 '19 20:01 wezell

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.

bryanboza avatar Jan 29 '19 19:01 bryanboza

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

wezell avatar Feb 14 '19 14:02 wezell

See: #11969

wezell avatar Mar 08 '19 19:03 wezell