Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Password reset/change accepting current password as new password #16331

Merged
merged 9 commits into from May 21, 2020

Conversation

ashwaniYDV
Copy link
Contributor

@ashwaniYDV ashwaniYDV commented Jan 26, 2020

Closes #15569

Description:

As a security caution, an admin may want to force the user to change their password if their old password has been compromised. This would allow them to set the current password as the new one, potentially allowing that user account to be compromised again.

Before changes(gif):

killer.ash's initail password is 123456 and admin requests him to change password. He enters the same password 123456 and is loggen in.

qwerty

After changes(gif):

adminpwdresetrequest

@ashwaniYDV ashwaniYDV changed the title [FIX] User cannot set the same previous pwd if admin requests a pwd c… [FIX] User cannot set the same previous pwd if admin requests a pwd change Jan 26, 2020
ggazzo
ggazzo previously requested changes Jan 31, 2020
Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this is the best approach, please test/compare the password inside the setPassword method, creating a method to check your current password its like a security issue too.

@ashwaniYDV
Copy link
Contributor Author

@ggazzo I have done the requested changes.

@ashwaniYDV
Copy link
Contributor Author

@gabriellsh Would you please review

@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

@sampaiodiego sampaiodiego self-assigned this May 21, 2020
@rodrigok rodrigok changed the title [FIX] User cannot set the same previous pwd if admin requests a pwd change [FIX] Password reset/change accepting current password as new password May 21, 2020
rodrigok
rodrigok previously approved these changes May 21, 2020
@sampaiodiego sampaiodiego merged commit d6a6332 into RocketChat:develop May 21, 2020
This was referenced May 28, 2020
gabriellsh added a commit that referenced this pull request May 29, 2020
…apps_rewrite

* 'develop' of github.com:RocketChat/Rocket.Chat: (30 commits)
  Regression: Fix Unread bar design (#17750)
  Regression: Adjusting spaces between OAuth login buttons (#17745)
  Improved thread margins for clarity
  Regression: Scroll on admin user info (#17711)
  Regression: Removed status border on mentions list (#17741)
  Regression: Force unread-rooms bar to appears over the room list (#17728)
  [NEW][APPS-ENGINE] Essentials mechanism (#17656)
  Regression: Fix error preventing creation of group DMs (#17726)
  [FIX] SAML IDP initiated logout error (#17482)
  Regression: Threads list was fetching all threads (#17716)
  Regression: Add missing return to afterSaveMessage callbacks (#17715)
  [FIX] Missing dropdown to select custom status color on user's profile (#16537)
  [FIX] Password reset/change accepting current password as new password (#16331)
  [NEW][ENTERPRISE] Support Omnichannel conversations auditing (#17692)
  Upgrade Livechat Widget version to 1.5.0 (#17710)
  [FIX] Can't click on room's actions menu of sidebar list when in search mode (#16548)
  [NEW][ENTERPRISE] Support for custom Livechat registration form fields (#17581)
  Update Fuselage version (#17708)
  [NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option (#17666)
  Regression: Status presence  color (#17707)
  ...
ggazzo added a commit that referenced this pull request Jun 3, 2020
…/new-threads* 'develop' of github.com:RocketChat/Rocket.Chat: (54 commits) Submit a payload to the release service when a release happens (#17775)  Regression: Fix Unread bar design (#17750)  Regression: Adjusting spaces between OAuth login buttons (#17745)  Improved thread margins for clarity  Regression: Scroll on admin user info (#17711)  Regression: Removed status border on mentions list (#17741)  Regression: Force unread-rooms bar to appears over the room list (#17728)  [NEW][APPS-ENGINE] Essentials mechanism (#17656)  Regression: Fix error preventing creation of group DMs (#17726)  [FIX] SAML IDP initiated logout error (#17482)  Regression: Threads list was fetching all threads (#17716)  Regression: Add missing return to afterSaveMessage callbacks (#17715)  [FIX] Missing dropdown to select custom status color on user's profile (#16537)  [FIX] Password reset/change accepting current password as new password (#16331)  [NEW][ENTERPRISE] Support Omnichannel conversations auditing (#17692)  Upgrade Livechat Widget version to 1.5.0 (#17710)  [FIX] Can't click on room's actions menu of sidebar list when in search mode (#16548)  [NEW][ENTERPRISE] Support for custom Livechat registration form fields (#17581)  Update Fuselage version (#17708)  [NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option (#17666)  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change password should not accept the current user password.
6 participants