Page MenuHomePhabricator

CheckUser: Create event when user changes, adds, or removes the email on their account
Open, Needs TriagePublic

Description

Summary

We should create a CheckUser event when a user changes the email on their account. This should include a hash of the account email to allow comparison.

Background

  • If an account is compromised, a typical next step is to change the email and password on the account
    • We currently log when a password reset request is created but we do not log when an email or password is actually changed
  • The email address of a user is considered private information, with the software not letting users see the email address when sending an email to them
  • There is an older feature request to allow CUs to see the email addresses of registered accounts (T117801)
    • This requests for CUs to be able to see the specific email address
    • In that task is it suggested that CUs should be able to see a hash of the email address, so that the email address can be compared to other accounts
  • While creating an event to indicate some change may be useful, it seems more useful to also include a hash of the new email address.
    • We could also include a hash of the old email address

User story

  • As a CheckUser I want to investigate an account compromise
  • I run a check on the account that is suspected to be compromised
  • I see a login from a new IP address, but I do not know if when logging in the user changed the password or email
  • I am unable to say if the account is still able to be reclaimed by the user who owns the account, as I am unable to see if the original email address is still attached
    • I want to know this to know if I can scramble the account password for the user who owns the account to then set a new password

Acceptance criteria

  • An event in the cu_private_event table is created when a user changes, adds or removes an email address on an account

Event Timeline

Change #1281974 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Store CheckUser private event when user confirms their email

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

Change #1281978 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Collect data for password change and setting email

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

Change #1305942 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Use sha256 for email recipient hash in CheckUser private events

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

Change #1305942 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310092 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@REL1_46] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310094 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@REL1_45] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310096 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@REL1_44] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310098 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@REL1_43] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310092 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@REL1_46] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310096 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@REL1_44] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310094 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@REL1_45] Use sha256 for email recipient hash in CheckUser private events

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

Change #1310098 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@REL1_43] Use sha256 for email recipient hash in CheckUser private events

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