Project

General

Profile

Actions

Defect #17830

open

User creation: clear/plaintext password sent via unencrypted email

Added by Hendrik Jaeger over 10 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Category:
Security
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

  henk | I just received an unencrypted mail from redmine containing my password in plaintext. Is that fixed in more recent versions? Is there a way to fix it in 1.4.4?
  henk | https://twitter.com/RamsayDev/status/460048737994551296 hehe, yeah, kinda my thoughts …
salvor | henk: no.
salvor | henk: that's only on user creation, and it's up to the administrator to send this password or not
salvor | after that everything happen through tokens
  henk | salvor: hm, ok, that’s not too bad then, but I still wonder why that’s not done through tokens as well?!
salvor | I guess we could do that even on user creation (= send a unique link to reset the password) ; or force password change on first connection (which is the same security wise I think)
salvor | do you see a legitimate case where an administrator would want to set a password manually for a user ?
  henk | salvor: No, not really. IMHO it’s nice to have that feature and I wouldn’t want it to go away, but it’s not a good default way to handle things.
salvor | I totally agree

Another idea:
allow specifying a pgp-key and send the mail encrypted

Actions #1

Updated by Jean-Baptiste Barth over 10 years ago

  • Assignee set to Jean-Baptiste Barth
  • Target version set to Candidate for next major release

Taking it as salvor == me :) Any comment welcome.

Actions #2

Updated by Michael Weinberg over 10 years ago

More problems- I'm running v 2.5.2:
1. There is a checkbox ("Send account information to the user") that is checked by default and unchecking it doesn't stick.

2. I changed my password for an existing account and it send it plain text.

3. There is no indication that "account information" contains the plain text password. At the very minimum, any password sent via plain text should be assumed compromised- The user should be required to change the password if they ever get a password in plain text.

Actions #3

Updated by Michael Gerz about 4 years ago

Does this security issue still exist after so many years?

Actions #4

Updated by Hendrik Jaeger over 1 year ago

I just registered a new account here on redmine.org and only received the registration link.
When I reported this, it was version 1.4.4, it seems, now we are at major version 4/5.

It seems like at least part of this issue is fixed.
Jean-Baptiste Barth can you provide a more complete and/or accurate update?

Actions #5

Updated by Go MAEDA over 1 year ago

Hendrik Jaeger wrote in #note-4:

I just registered a new account here on redmine.org and only received the registration link.
When I reported this, it was version 1.4.4, it seems, now we are at major version 4/5.

It seems like at least part of this issue is fixed.

No, it is not yet fixed. Even in Redmine 5.0, a password will be sent in plain text if an administrator checks the checkbox named "Send account information to the user" when creating a user.

Actions #6

Updated by Holger Just over 1 year ago

It may be a good idea to force users to change the password on first login if the password was sent to the user. Then, the initial password is effectively a token which allows the user to login once.

This could be enforced by setting the must_change_password flag on the user (and thus implicitly enable the respective checkbox on the users/new.html.erb form) if account details are sent to the user. This could be added in the UsersController. We also might add some documentation to explain what this does and note that the email will include the generated or set password.

Hendrik Jaeger wrote in #note-4:

I just registered a new account here on redmine.org and only received the registration link.
When I reported this, it was version 1.4.4, it seems, now we are at major version 4/5.

It seems like at least part of this issue is fixed.

As far as I understand the old code, in Redmine < 3.4 we have indeed checked the "Send account information to the user" checkbox by default. Unless the administrator has actively unchecked the checkbox each time, the password of the new user would indeed be sent via plaintext mail by default. I believe this was incidentally changed in r16453 so that this checkbox is not checked by default.

In any case, as far as I'm aware, when self-registering, we have never sent the self-selected password via mail. This was (and still is) only used as a way to sent the newly created user a means to login if this new user was created by an admin.

Actions

Also available in: Atom PDF