Most users usually (only?) change their password when they suspect it has been compromised. Therefore, when a password is changed, it is sensible to destroy all existing open sessions for that user account except the one that changed the password.

Patch attached.

CommentFileSizeAuthor
user-pass-patch.txt820 bytesbjaspan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Active » Reviewed & tested by the community

thats perfectly sensible. rtbc.

kbahey’s picture

+1, as I said on the devel mailing list.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. Committed to CVS HEAD. Thanks!

m3avrck’s picture

Version: 6.x-dev » 5.x-dev
Status: Fixed » Reviewed & tested by the community

This should be in 5 too, no?

bjaspan’s picture

I'd say so. I do not think it is worthy of a security advisory but it is a security improvement.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.

Anonymous’s picture

Status: Fixed » Closed (fixed)