Page MenuHomePhabricator

Allow privileged users to see deleted edits on Special:AbuseLog
Closed, DuplicatePublic

Description

Access was removed due to T224203, as a safety measure. Copying my relevant comment from there:

In T224203#5209939, @Daimona wrote:
  1. Instead of relying on SpecialAbuseLog::isHidden, we add another function which will return more useful data about what is exactly hidden for a given revision. This way, we can redact only the suppressed data, and if the revision text is not suppressed, we could even show the details of the entry (hiding deleted data). [Note: beware of the edit summary which is shown as a variable]. This change is probably the saner, but it would require several changes throughout the whole AF codebase to handle deleted revision more precisely.

Event Timeline

sbassett triaged this task as Medium priority.Sep 19 2019, 4:06 PM

No guarantees, but I'm trying to see what we can do.

I'm also throwing in a random idea: given the past leaks, it'd be cool to have a test to automatically check visibility. It would create a simple filter, make various edits, then try various combinations of deleted/suppressed revision/AbuseLog entry, and try to view it with various levels of permissions (no privileges, abusefilter-view-private only, sysop, oversighter, etc.). That's painful to do manually. I don't know if selenium would be good for that.

Change 538077 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Replace SpecialAbuseLog::isHidden with a more verbose method

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

Change 538079 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Show AbuseLog entries referring to a deleted revision to privileged users

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

I think fixing this task has a chance of fixing T261532 and T262035 as well.

Change 538077 abandoned by Daimona Eaytoy:

[mediawiki/extensions/AbuseFilter@master] Replace SpecialAbuseLog::isHidden with a more verbose method

Reason:

Superseded by I929f865acf5d207b739cb3af043f70cb59243ee0

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

Change 538079 abandoned by Daimona Eaytoy:

[mediawiki/extensions/AbuseFilter@master] Show AbuseLog entries referring to a deleted revision to privileged users

Reason:

Superseded by I929f865acf5d207b739cb3af043f70cb59243ee0

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