Allow more fine-grained throttling of login attempts
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 15 Feb 2016 05:01:55 +0000 (00:01 -0500)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 23 Feb 2016 23:02:35 +0000 (18:02 -0500)
commit6fcfa981544fca6a6e490334451a66046e0ab3ba
tree1067bcfa22dd9befd827527e4dbfe39251d939b6
parentf45608ea3e0f00bfb05c3ebd46d5f8a70139e3b5
Allow more fine-grained throttling of login attempts

In addition to the 5 attempts every 5 minutes rule, add some long
term rules. Its extraordinarily unlikely that a non-malicious person would
use the wrong password 150 times in a row, so add a rule that you
can't have 150 login fails in a row in 48 hours all from the same
IP address. Also add the ability to set throttles across all IPs, but
do not set any of these types by default (There is an unclear risk/benefit
tradeoff between making it easy to lock someone out of their
account in a DoS attack, and preventing brute-forcing)

Bug: T122164
Change-Id: I5c279906936ef3991a42fc21325c3ffd4a200493
includes/DefaultSettings.php
includes/api/ApiLogin.php
includes/specials/SpecialChangeEmail.php
includes/specials/SpecialChangePassword.php
includes/specials/SpecialUserlogin.php