Page MenuHomePhabricator

Password data leakage when using external authentication
Closed, ResolvedPublic

Description

MediaWiki stores passwords in the local database under a number of circumstances. Auth plugins were taking steps to avoid this, but there's a number of ways in which core makes it impossible.

AuthPlugin should have a method that tells core whether it should or should not store the password locally.


Version: 1.19.1
Severity: normal

Details

Reference
bz39184

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:06 AM
bzimport set Reference to bz39184.
bzimport added a subscriber: Unknown Object (MLST).

Patch to fix the issue in core.

Attached:

If your MediaWiki installation doesn't allow local authentication, and only allows external authentication, then you should purge all passwords from your MediaWiki database:

UPDATE user SET user_password='';

If your installation has a mix of users that use local authentication and external authentication you should purge the user_password field for the external users, but not for the local users. Unfortunately, there's no easy way to tell which users are external and which are local, you'll need to determine that yourself.

Unhiding patch since it got release publicly.