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