Homec4science

Terminate other sessions on credential changes

Authored by epriestley <git@epriestley.com> on Aug 4 2014, 21:04.

Description

Terminate other sessions on credential changes

Summary:
Fixes T5509. Currently, existing sessions live on even if you change your password.

Over the course of the program, we've recieved a lot of HackerOne reports that sessions do not terminate when users change their passwords. I hold that this isn't a security vulnerability: users can explicitly manage sessions, and this is more general and more powerful than tying session termination to password resets. In particular, many installs do not use a password provider at all (and no researcher has reported this in a general, application-aware way that discusses multiple authentication providers).

That said, dealing with these false positives is vaguely time consuming, and the "expected" behavior isn't bad for users, so just align behavior with researcher expectations: when passwords are changed, providers are removed, or multi-factor authentication is added to an account, terminate all other active login sessions.

Test Plan:

  • Using two browsers, established multiple login sessions.
  • In one browser, changed account password. Saw session terminate and logout in the second browser.
  • In one browser, removed an authentication provider. Saw session terminate and logout in the second browser.
  • In one browser, added MFA. Saw session terminate and logout in the second browser.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5509

Differential Revision: https://secure.phabricator.com/D10135

Details

Committed
epriestley <git@epriestley.com>Aug 4 2014, 21:04
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe56dc8f29986: Invalidate outstanding password reset links when users adjust email addresses
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH95eeffff7e5d: Terminate other sessions on credential changes (authored by epriestley <git@epriestley.com>).Aug 4 2014, 21:04