Page MenuHomePhabricator

Temporary accounts: Unlogged IP reveal possible during read only mode
Closed, ResolvedPublic

Description

Summary

If the site is in read only mode, it is possible to use IP reveal on temporary accounts without this being logged

Background

  • The IP reveal log requires read-write mode to be enabled to work
    • When read only mode is enabled, the on-wiki log cannot be created and a critical logstash log is created. However, the IP reveal still occured
  • We should prevent unlogged IP reveals during period of read only mode
  • During the recent emergency read only period, we saw 1,400 instances of IP reveal that were unlogged
    • This is mostly IP reveal via the abuselog API

Acceptance criteria

  • It is no longer possible to use IP reveal when the site is in read only mode

Event Timeline

Hmm, are you sure that right now it's possible to view the IP address of temporary accounts during a read-only period? I haven't checked it just now, but I'm pretty sure that during the recent emergency read-only period, when I tried to display IP addresses, I got an error.

Hmm, are you sure that right now it's possible to view the IP address of temporary accounts during a read-only period? I haven't checked it just now, but I'm pretty sure that during the recent emergency read-only period, when I tried to display IP addresses, I got an error.

Yes, the entry in the logging table only gets created after the IP address has been queried and returned. Specifically it appears that the issue is mostly related to the abuselog API. The rest (18 events) are seen from jobs, but it's possible that these entries were made during the period of time that some servers were read only and others were read-write

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

[mediawiki/extensions/AbuseFilter@master] Protected vars: Don't show values during site read only

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

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

[mediawiki/extensions/CheckUser@master] IP reveal: Don't allow IP reveal when in read only mode

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

Change #1262168 merged by jenkins-bot:

[mediawiki/extensions/AbuseFilter@master] Protected vars: Don't show values during site read only

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

Change #1262266 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] IP reveal: Don't allow IP reveal when in read only mode

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