owncloud has no account lockout mechanism
Steps to reproduce
- Login with bad password 3 or more times
- Login right password
- Account not locked
Expected behaviour
User account should have an automatic lock after X number of login attempts (usually 3, should be admin configurable)
Actual behaviour
User accounts never get locked out, which may result in successful password guessing.
Server configuration
Operating system: Linux SERVER 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Web server: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 OpenSSL/1.0.1f
Database: mysql Ver 14.14 Distrib 5.5.38, for debian-linux-gnu (x86_64) using readline 6.3
PHP version: PHP/5.5.9-1ubuntu4.3
ownCloud version: (see ownCloud admin page) ownCloud 6.0.1+dfsg-1ubuntu1 (Debian) (stable)
Updated from an older ownCloud or fresh install: Fresh
List of activated apps: Default
The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'datadirectory' => '/var/owncloud/data',
'dbtype' => 'mysql',
'version' => '6.0.0.16',
'appstoreenabled' => false,
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/share/owncloud/apps',
'url' => '/apps',
'writable' => false,
),
),
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'maxZipInputSize' => 838860800,
'allowZipDownload' => true,
);
Are you using external storage, if yes which one: local/smb/sftp/... No
Are you using encryption: yes/no Yes
Client configuration
Browser: Chrome 37.0.2062.103 m Operating system: Windows 7 64-bit
Logs
Web server error log
Not applicable
ownCloud log (data/owncloud.log)
Not applicable
Browser log
Not applicable
@lukasreschke
In the mean time, there is a work around -
- use fail2ban and set it to fail after 3 attempts (http://www.fail2ban.org/wiki/index.php/Main_Page)
- use a directory like openldap or something and set the policy there
This is something that I plan to implement. Doing it properly requires some refactoring and additional thoughts. (e.g. users should be able to whitelist their IP when the account has been locked, etc...)
Closing as duplicate of some other issues. (on my mobile atm)
Ref: https://github.com/owncloud/core/issues/1580