Skip to content

Upgrading Nextcloud 13 -> 14 (on Ubuntu 18.04) permanently locks you out if "Password is among the 1,000,000 most common ones" #11097

@holta

Description

@holta

Steps to reproduce

  1. Upgrade Nextcloud 13.0.6 to Nextcloud 14.0.0 on a Ubuntu 18.04 machine, with a "weak" password that worked fine with Nextcloud 13.0.6 (prior to the upgrade).
  2. Try to log in to Nextcloud's web interface.

Expected behaviour

Nextcloud should not unrecoverably lock you out of your files and system.

(Or it should let you change your password at the very minimum!)

Actual behaviour

Nextcloud prevents you from logging in, with this small message in the center of the screen:

Error: Password is among the 1,000,000 most common ones. Please make it unique.

But you cannot log in to change your password!

(Nor should you have to, if using Nextcloud in an offline or pre-production environment, where a "weak" password is an intentional choice in training environments.)

Server configuration

Operating system:
Ubuntu 18.04 Server or Desktop (same exact problem occurs).

Thia same problem does NOT occur on Ubuntu 16.04 or on the Raspbian OS on Raspberry Pi(!)

Web server:
Apache

Database:
MySQL

PHP version:
7.2.7-0ubuntu0.18.04.2

Nextcloud version: (see Nextcloud admin page)
14.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 13.0.6

Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-14.0.0.tar.bz2

Signing status:
(Cannot log into Nextcloud)

List of activated apps:
sudo -u www-data php occ app:list returns...

Enabled:

  • accessibility: 1.0.1
  • activity: 2.7.0
  • cloud_federation_api: 0.0.1
  • comments: 1.4.0
  • dav: 1.6.0
  • federatedfilesharing: 1.4.0
  • federation: 1.4.0
  • files: 1.9.0
  • files_pdfviewer: 1.3.2
  • files_sharing: 1.6.2
  • files_texteditor: 2.6.0
  • files_trashbin: 1.4.1
  • files_versions: 1.7.1
  • files_videoplayer: 1.3.0
  • firstrunwizard: 2.3.0
  • gallery: 18.1.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.2.0
  • nextcloud_announcements: 1.3.0
  • notifications: 2.2.1
  • oauth2: 1.2.1
  • password_policy: 1.4.0
  • provisioning_api: 1.4.0
  • serverinfo: 1.4.0
  • sharebymail: 1.4.0
  • support: 1.0.0
  • survey_client: 1.2.0
  • systemtags: 1.4.0
  • theming: 1.5.0
  • twofactor_backupcodes: 1.3.1
  • updatenotification: 1.4.1
  • workflowengine: 1.4.0
    Disabled:
  • admin_audit
  • encryption
  • files_external
  • user_external
  • user_ldap

Nextcloud configuration:
sudo -u www-data php occ config:list system returns...

{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost",
"*"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "mysql",
"version": "14.0.0.19",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE"
}
}

Are you using external storage, if yes which one: local/smb/sftp/...
No.

Are you using encryption: yes/no
Not relevant.

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No.

LDAP configuration (delete this part if not used)

sudo -u www-data php occ ldap:show-config returns...

There are no commands defined in the "ldap" namespace.

Client configuration

Browser:
Firefox 62

Operating system:
Diverse

Logs

Web server error log

Nextcloud log (data/nextcloud.log)

Browser log

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions