From ba4f12baa02dfb55ec8822687896d643261440c4 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 20 Jul 2016 18:36:15 +0200 Subject: Implement brute force protection Class Throttler implements the bruteforce protection for security actions in Nextcloud. It is working by logging invalid login attempts to the database and slowing down all login attempts from the same subnet. The max delay is 30 seconds and the starting delay are 200 milliseconds. (after the first failed login) --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/base.php') diff --git a/lib/base.php b/lib/base.php index be9de93f73f..a5e9d9716b7 100644 --- a/lib/base.php +++ b/lib/base.php @@ -913,7 +913,7 @@ class OC { if ($userSession->tryTokenLogin($request)) { return true; } - if ($userSession->tryBasicAuthLogin($request)) { + if ($userSession->tryBasicAuthLogin($request, \OC::$server->getBruteForceThrottler())) { return true; } return false; -- cgit v1.2.3