Page MenuHomePhabricator

Throttle temporary account creation
Closed, ResolvedPublic

Description

Motivation

Temporary accounts can be abused by bad actors who repeatedly delete their cookies to generate new temporary accounts. Under the current rules this can be done a maximum of 6 times per day after which they will have to wait for 24 hours.
This task is to make it harder for bad actors to do this.

Acceptance criteria
  • Introduce a rate limit that works on a shorter interval (e.g. 10-minute cool off period between repeated temporary account creations, or 1 temporary account creation per 4 hours)
    • This should not impact registered account creations.

Mock
TBD

Event Timeline

Niharika triaged this task as Medium priority.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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

[mediawiki/core@master] Add a short-term rate limit to temp account creation

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

Change #1194904 merged by jenkins-bot:

[mediawiki/core@master] Add a short-term rate limit to temp account creation

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

Change #1195399 had a related patch set uploaded (by Kosta Harlan; author: STran):

[mediawiki/core@wmf/1.45.0-wmf.22] Add a short-term rate limit to temp account creation

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

Change #1195399 merged by jenkins-bot:

[mediawiki/core@wmf/1.45.0-wmf.22] Add a short-term rate limit to temp account creation

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

Djackson-ctr subscribed.

New Code Changes for 10 minute short-term rate limit has been implemented and verified, and the existing code for maximum of 6 temporary account creations per day is still intact.

New Code Changes for 10 minute short-term rate limit has been implemented and verified, and the existing code for maximum of 6 temporary account creations per day is still intact.

This should be documented in https://www.mediawiki.org/wiki/Manual:$wgTempAccountCreationThrottle

New Code Changes for 10 minute short-term rate limit has been implemented and verified, and the existing code for maximum of 6 temporary account creations per day is still intact.

This should be documented in https://www.mediawiki.org/wiki/Manual:$wgTempAccountCreationThrottle

Good catch. @STran can you please do this?