RocketChat / RocketChat/Rocket.Chat

Password policy not adhered to by automatic password generation

Open
#12,494 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When the password policy setting is switched on and a password is automatically generated by an administrator during the user creation process, the generated password does not adhere to the specified policy, and thus fails to be saved.

Steps to reproduce:
  1. Configure a password policy.
  2. As an administrator, manually add a new user.
  3. Attempt to set that user's password, using the automatic password generation feature.
Expected behavior:

The generated password conforms to the configured password policy.

Actual behavior:

The generated password fails to conform to the configured password policy and is not set.

Server Setup Information:
  • Version of Rocket.Chat Server: 0.71.0
  • Operating System: Ubuntu 18.04
  • Deployment Method: Docker

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing automatic password generation from the administrator's user-creation flow into password-policy validation, then reproduce the reported setup and confirm that generated passwords satisfy the configured policy and can be saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.