Skip to content

Commit

Permalink
Remove sleep() from the password modules (see #1848)
Browse files Browse the repository at this point in the history
Description
-----------

Because

1. the effect is marginal and can even encourage timing attacks,
2. we already have real brute force protection for logins,
3. it will mislead people to believe that `sleep(2)` is an appropriate means to mitigate brute force attacks (see #1769), which it is definitely not!

Commits
-------

1aaab19 Remove sleep() from the password modules
  • Loading branch information
leofeyer committed Jun 19, 2020
1 parent 9736169 commit 333de5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ protected function compile()
{
$objWidget->value = '';
$objWidget->addError($GLOBALS['TL_LANG']['MSC']['oldPasswordWrong']);
sleep(2); // Wait 2 seconds while brute forcing :)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ protected function compile()

if ($objMember === null)
{
sleep(2); // Wait 2 seconds while brute forcing :)
$this->Template->error = $GLOBALS['TL_LANG']['MSC']['accountNotFound'];
}
else
Expand Down

0 comments on commit 333de5c

Please sign in to comment.