Page MenuHomePhabricator

email-blacklist not honored if changing email
Closed, ResolvedPublicBUG REPORT

Description

  1. Use .* as the filter for mediawiki:email-blacklist
  2. Use \bvalidemail\.com\b for mediawiki:email-whitelist
  3. create account with validemail.com
  4. change email to something other than validemail.com

What happens?:
Users can register account with an allowed email and then change it to a blocked email address.

What should have happened instead?:
The checks should also happen when user changes email.

Software version (skip for WMF-hosted wikis like Wikipedia):
MW1.38.2

Event Timeline

Change #1035844 had a related patch set uploaded (by Lens0021; author: Lens0021):

[mediawiki/core@master] Create UserCanChangeEmail Hook

https://gerrit.wikimedia.org/r/1035844

Change #1035845 had a related patch set uploaded (by Lens0021; author: Lens0021):

[mediawiki/extensions/SpamBlacklist@master] Add Check for changing email

https://gerrit.wikimedia.org/r/1035845

See also: T224921: Code Stewardship Review: SpamBlacklist.

This might be of interest to the Trust and Safety Product Team, tagging as such, but please feel free to untag if this should be owned elsewhere.

Dreamy_Jazz subscribed.

I don't know if we should claim this extension, but I don't think we currently have the capacity to deal with SpamBlacklist due to the Temporary accounts work.

Change #1035844 merged by jenkins-bot:

[mediawiki/core@master] Create UserCanChangeEmail Hook

https://gerrit.wikimedia.org/r/1035844

Change #1035845 merged by jenkins-bot:

[mediawiki/extensions/SpamBlacklist@master] Add Check for changing email

https://gerrit.wikimedia.org/r/1035845

No reply; assuming this is done. Please reopen if there is more work to do.