core icon indicating copy to clipboard operation
core copied to clipboard

owncloud has no account lockout mechanism

Open gerald626 opened this issue 12 years ago • 4 comments

Steps to reproduce

  1. Login with bad password 3 or more times
  2. Login right password
  3. 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

gerald626 avatar Sep 05 '14 17:09 gerald626

@lukasreschke

karlitschek avatar Sep 05 '14 19:09 karlitschek

In the mean time, there is a work around -

  1. use fail2ban and set it to fail after 3 attempts (http://www.fail2ban.org/wiki/index.php/Main_Page)
  2. use a directory like openldap or something and set the policy there

MTRichards avatar Sep 05 '14 22:09 MTRichards

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)

LukasReschke avatar Sep 06 '14 08:09 LukasReschke

Ref: https://github.com/owncloud/core/issues/1580

ghost avatar Sep 06 '14 11:09 ghost