Page MenuHomePhabricator

Rate-limit EmailAuth emails for all types of password attempts
Open, In Progress, MediumPublic

Description

Similar to OATHAuth's usage of PingLimiter, we should rate-limit EmailAuth's emails for both good and bad password attempts, so as to avoid sending a significant number of emails in certain situations.

Details

Related Changes in Gerrit:

Event Timeline

And more importantly to prevent brute-forcing the verification code.

And more importantly to prevent brute-forcing the verification code.

I'd actually thrown together a basic patch a la the OATHAuth pattern yesterday, but I see you've claimed this. I'll push the patch to gerrit anyways. If it's the wrong approach or you have a different plan, I can just abandon it.

Change #1167869 had a related patch set uploaded (by SBassett; author: SBassett):

[mediawiki/extensions/EmailAuth@master] Rate-limit EmailAuth emails

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

I also had a WIP patch, but it wasn't meaningfully different.

sbassett changed the task status from Open to In Progress.Jul 14 2025, 4:30 PM
sbassett triaged this task as Medium priority.
sbassett moved this task from Incoming to In Progress on the Security-Team board.
sbassett added a project: user-sbassett.
sbassett added a project: SecTeam-Processed.
sbassett moved this task from Backlog to In Progress on the user-sbassett board.