Page MenuHomePhabricator

Special:AbuseLog: Support search by IP and IP range when temporary accounts are enabled
Closed, ResolvedPublic1 Estimated Story Points

Description

Summary

Special:AbuseLog provides a search input for "User" that allows finding matches in logs for an IP address across all filters. When temporary accounts are enabled, searching by IP address no longer works. For users who have IP reveal rights, we should make it possible to find log matches for IPs associated with temporary accounts.

Background

  • Conceptually, this is somewhat similar to Special:IPContributions which allows plugging in an IP address or range, and finding temporary accounts (in last 90 days) associated with the IP / range.
    • From that point of view, the privacy and legal risk for this feature should be similar to Special:IPContributions

Technical notes

  • AbuseFilter will support IP/range lookups via afl_ip_hex after T397842: Populate afl_ip_hex for pre-existing abuse_filter_log rows
  • SpecialAbuseLog::searchForm's SearchUser input should now support IP ranges. See SpecialCheckUser, SpecialInvestigate for examples of how to support ip ranges (iprange property). Range should probably have some kind of limit like Special:IPContributions does.
  • SpecialAbuseLog::showList takes a parameter mSearchUser which should now ingest IP/ranges
  • If an IP/range is submitted (use IPUtils), the condition should match the IP/range to afl_ip_hex
    • The results should exclude all rows except those which are performed by logged-out users (where the IP is used as the performer of the log) and temporary accounts (as determined by TempUserConfig::isTempName and/or TempUserConfig::getMatchCondition)

Acceptance criteria

  • As a user with IP reveal rights, I can input an IP address or IP address range on Special:AbuseLog and get results with matches for the relevant temporary account users

Event Timeline

kostajh renamed this task from Special:AbuseLog: Support search by IP when temporary accounts are enabled to Special:AbuseLog: Support search by IP and IP range when temporary accounts are enabled.Apr 8 2025, 7:27 AM

Change #1172321 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/AbuseFilter@master] Support IP lookups of temporary accounts on Special:AbuseLog

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

Tchanders set the point value for this task to 1.Jul 29 2025, 6:41 AM

Change #1172321 merged by jenkins-bot:

[mediawiki/extensions/AbuseFilter@master] Support IP lookups of temporary accounts on Special:AbuseLog

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

Djackson-ctr subscribed.

New Code Changes have been implemented Per the Acceptance Criteria:

QA was completed for this ticket using Mediawiki 1.45.0-wmf.14 (012f5a9).

Testing was performed on various: Skins, Desktop View/MobileView, Chrome/Edge/Firefox/Safari, Windows/Mac/Android/iOS, RTL languages