This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 247616 - Password crypted and NOT sent in a email
Summary: Password crypted and NOT sent in a email
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EPF (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Onno van der Straaten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-17 05:38 EDT by Henrik Terävä CLA
Modified: 2023-02-16 16:32 EST (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (2.24 KB, application/octet-stream)
2008-10-02 03:33 EDT, Onno van der Straaten CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Terävä CLA 2008-09-17 05:38:16 EDT
Build ID: 1.5 RC1

Steps To Reproduce:
Log in as a new user
 * password should NOT be sent in email, and it should be encrypted in database
Comment 1 Onno van der Straaten CLA 2008-09-17 14:12:44 EDT
Sign up is configurable in the environment files, see for example production.rb http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.epf/epfwiki/source/config/environments/production.rb?revision=1.6&root=Technology_Project&view=markup

ENV['EPFWIKI_GENERATE_PASSWORDS'] = '0' # 1 to generate passwords or 0 to allow user to specify the password

So the default is to allow user to specify the password. The user receives an email with the password (as a reminder) and a confirmation link. The account can only be used after it is confirmed by clicking the link. So this ensures the email and sign up is valid.

The password is not stored in the database. A hash value is generated and stored so the password is not known to EPF WIki.

This is working as designed and I think it is not uncommon that passwords are sent via email. Or is it?



Comment 2 Henrik Terävä CLA 2008-09-18 03:10:03 EDT
Good, that a hash value is stored.

However, I think that it is uncommon that passwords are sent via email. At least I don't see any good point for that, because the password has to be typed twice and if the user forgots it before confirming, the account can easily be deleted.

I suppose the emails aren't even secure enough for including passwords, but maybe this is a voting issue, and I would won't against sending them :-)

(This issue came across when a new user was doing an login test in presentation mode (video screen), and everybody could see the password which was shown in the email...)
Comment 3 Onno van der Straaten CLA 2008-09-18 04:40:38 EDT
Use of email that is not encrypted is inherently unsafe but I see your point that it would be more secure without the password.

I don't think we need a vote on it. This is a small (impact) change, I can implement this as you suggest. I will also remove the ability for generating passwords, I think one way of doing this is enough. And having an user type supply and confirm the password is more secure. If the user forgets the password or the looses the confirmation link, I think it is necessary for the user to be able to set a new password. This would send another confirmation link to the user. The old password would remain active as longs as the confirmation link for the new password was not used. This to prevent anyone from randomly resetting passwords.

Comment 4 Henrik Terävä CLA 2008-09-18 05:11:37 EDT
Yes, agreed with these suggestions.
Comment 5 Onno van der Straaten CLA 2008-10-01 05:12:31 EDT
Partly fixed as part of 249268: Passwords appear in log file
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249268

To do is to remove ability to generate passwords and to change reset/lost password functionality. This shouldn't generate a new password but should allow the user to set a new password.
Comment 6 Onno van der Straaten CLA 2008-10-02 03:33:45 EDT
Applied some changes so that password are no longer send via email and they don't appear in the log file. Where passwords used to appear, there is now the text [FILTERED].

Also changed the lost password approach. Now you need to supply a new password which will become active after the user clicks the confirmation link send to his email address.
Comment 7 Onno van der Straaten CLA 2008-10-02 03:33:50 EDT
Created attachment 114070 [details]
mylyn/context/zip
Comment 8 Onno van der Straaten CLA 2008-10-07 06:54:06 EDT
If there is a new session object (logon via un/pw, not via cookie), any error reports will also contain a user object with the password. 
Comment 9 Onno van der Straaten CLA 2008-10-08 05:31:04 EDT
We can manually filter password, password confirmation with something like below in view file. 

<h3>Params</h3>
<hr/>
<% for key, val in @params -%>
<p><b><%= key %></b></p>
<p><%= val.to_yaml.to_a.join("</p>\n<p>    ").gsub(/password:.*/, 'password: ****') %></p>
<% end if @params -%>

<h3>Session</h3>
<hr/>
<% for key, val in @session -%>
<p><b><%= key %></b></p>
<p><%= val.to_yaml.to_a.join("</p>\n<p>    ").gsub(/password:.*/, 'password: ****') %></p>
<% end if @session -%>
Comment 10 Onno van der Straaten CLA 2008-10-08 13:30:11 EDT
Implemented the change as described in previous comment
Comment 11 Onno van der Straaten CLA 2010-12-02 09:52:31 EST
OK