Page MenuHomePhabricator

Don't store temporary user names in AntiSpoof's spoofuser table
Closed, ResolvedPublic2 Estimated Story Points

Description

As explained in T331749#8830628, we should not store temporary user names in the spoofuser table.

Ensure that temporary user names are not added to the table via:

  • SpoofUser class
  • BatchAntiSpoof class
  • any other means

Event Timeline

Change 922086 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/AntiSpoof@master] Don't store temporary user names in AntiSpoof's spoofuser table

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

AGueyte set the point value for this task to 2.May 24 2023, 1:32 PM

Change 922086 merged by jenkins-bot:

[mediawiki/extensions/AntiSpoof@master] Don't store temporary user names in AntiSpoof's spoofuser table

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

I tested this by:

  • Installing AntiSpoof, following the steps on https://www.mediawiki.org/wiki/Extension:AntiSpoof (including the last step about running composer update)
  • I ran the maintenance script batchAntiSpoof.php and confirmed that my named users were added to the spoofuser table, but my temporary users were not
  • I created a new temporary user by editing logged-out; the user was not added to spoofuser
  • I created a new named user; the user was added to spoofuser
  • As a quick regression test, I tried creating a user with a similar name to the one I had just created, and got the following error, as expected:

image.png (345×538 px, 40 KB)

@GMikesell-WMF I'll leave it with you whether you'd like to move this task on, but it looks good to me

@Tchanders We got it up and running now as seen in the screenshots below. Looks good to me too, thanks for the assist! I will move this to Done.

Similar name

T336196_IPMasking_Antispoof1.png (736×3 px, 235 KB)

Temp user

T336196_IPMasking_Antispoof_Temp.png (532×3 px, 171 KB)

SQL table

T336196_IPMasking_Antispoof_Sql.png (127×495 px, 14 KB)