core icon indicating copy to clipboard operation
core copied to clipboard

Passwords do not have minimum level of security

Open gerald626 opened this issue 12 years ago • 35 comments

Steps to reproduce

  1. Create new user with 1 character password
  2. Login with said account
  3. Profit???

Expected behaviour

Admins should be able to set the minimum password security requirements (max/min characters, upper/lower case, special characters, etc...

Actual behaviour

Passwords of 1 character are allowed.

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:

'', '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. What do you think? The challenge is to stay compatible with external user managements like ldap

karlitschek avatar Sep 05 '14 19:09 karlitschek

Yes. This is something that we should have in the future but I don't see an immediate need for it right now. It would currently just be "yet another hack that we need to maintain without really increasing your security".

In the real world users tend to just increase numbers (e.g. summer14! => summer15!) in their passwords or write it down. Which usually would not really increase the overall security.

Implementing this properly would require from my point of view:

  • Adding a password expiration policy
  • Adding an easy to use password policy tool
  • Add a password change page in case the password expired.

This is not something that I would consider for stable7. stable8 might be realistic.

This also would require that the users have to change the password on all their connected devices on their own. I'd therefore prefer to habe OAuth2 for this so that the user does not have to change anything. (if he believes a token has been leaked he can reset the single token)

LukasReschke avatar Sep 06 '14 08:09 LukasReschke

In the real world users will use the number '1' as a password if they can. On Sep 6, 2014 4:26 AM, "Lukas Reschke" [email protected] wrote:

Yes. This is something that we should have in the future but I don't see an immediate need for it right now. It would currently just be "yet another hack that we need to maintain without really increasing your security".

In the real world users tend to just increase numbers (e.g. summer14! => summer15!) in their passwords or write it down. Which usually would not really increase the overall security.

Implementing this properly would require from my point of view:

  • Adding a password expiration policy
  • Adding an easy to use password policy tool
  • Add a password change page in case the password expired.

This is not something that I would consider for stable7. stable8 might be realistic.

This also would require that the users have to change the password on all their connected devices on their own. I'd therefore prefer to habe OAuth2 for this so that the user does not have to change anything. (if he believes a token has been leaked he can reset the single token)

— Reply to this email directly or view it on GitHub https://github.com/owncloud/core/issues/10901#issuecomment-54706303.

gerald626 avatar Sep 06 '14 15:09 gerald626

:+1: this is really necessary!

h-2 avatar Jan 21 '15 21:01 h-2

@bboule @craigpg We have a large prospect asking for this as a hard requirement. @MTRichards do we have this on the roadmap?

PS Opening FT for this in SFDC.

sbelov1 avatar Jun 11 '15 19:06 sbelov1

Which part is missing this - server? Or sharing link?

MTRichards avatar Jun 11 '15 19:06 MTRichards

@MTRichards Sharing via link. They're using AD for user auth.

sbelov1 avatar Jun 11 '15 19:06 sbelov1

It is in consideration for 8.1.

What password options do they want for strength? Trying to get to minimum viable product here. Upper, lower, special character, number, min length?

How do they want to set these options?

Or is something simple like min length alone enough?

MTRichards avatar Jun 11 '15 20:06 MTRichards

@MTRichards checking with the prospect...

sbelov1 avatar Jun 11 '15 20:06 sbelov1

Thanks! Feature research.

MTRichards avatar Jun 11 '15 20:06 MTRichards

@MTRichards @bboule very large prospect has the same requirement: as an example, they provided a screen shot of a simple configuration for public link passwords

link-pwd-policy

ma-schmid avatar Jun 19 '15 08:06 ma-schmid

as an example, they provided a screen shot of a simple configuration for public link passwords

simple? LOL @jancborchardt will love this "easyness"

DeepDiver1975 avatar Jun 19 '15 09:06 DeepDiver1975

Yeah, sorry but ridiculous password requirements are the most annoying UX on the internet.

At most this can be done as a separate app which will definitely not be shipped by default.

jancborchardt avatar Jun 19 '15 10:06 jancborchardt

Hey guys it sounds like we have a few large potential users that are asking for this, and it sounds like we are not inclined do do this in the product? Am I reading this correctly, this would need to be developed as a separate app @craigpg do you see this as a potential consulting engagement. I guess my point here is the requirement is not going to change just want to figure out how to get there?

bboule avatar Jun 19 '15 10:06 bboule

This is on the list for ownCloud 8.2. The screenshot above is simply to outline the options that need to be covered.

@bboule @CaptionF As discussed on the List. @cmonteroluque for your reference. @jancborchardt is there an option that gets us close you would consider "visually appealing"? Can't have confidential data hanging out there with a password of "l".

MTRichards avatar Jun 19 '15 12:06 MTRichards

We basically can add a feature in core allowing some kind of callback which allows any other code to verify the password. Some super fancy UI to specify password restriction can be implemented as an isolated app.

DeepDiver1975 avatar Jun 19 '15 13:06 DeepDiver1975

I mean – the example screenshot above already is quite close to how visually appealing you can make such an interface.

The thing I meant here is that from a high-level standpoint that this should be a separate app for sure, not in core by default. (As Thomas just said seconds ago above.)

jancborchardt avatar Jun 19 '15 13:06 jancborchardt

I like that. Gives us what we need without cluttering the interface unnecessarily.

@DeepDiver1975 What would it take to do what you said there, to create the ability to do this?

MTRichards avatar Jun 19 '15 13:06 MTRichards

@sbelov1 @CaptionF does the 8.2 timeframe create an issue? How does this impact the Opps?

bboule avatar Jul 01 '15 15:07 bboule

@bboule It doesn't impact us any longer as we've lost the prospect.

sbelov1 avatar Jul 01 '15 15:07 sbelov1