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

Broken password reset on staging #984

Closed
bethschechter opened this issue Dec 8, 2016 · 8 comments
Closed

Broken password reset on staging #984

bethschechter opened this issue Dec 8, 2016 · 8 comments
Assignees

Comments

@bethschechter
Copy link

Steps to reproduce the error

  1. Forget password (optional)
  2. Click link to Reset Password
  3. Go to inbox, where the reset link is
  4. Click the link
  5. Attempt to create new password

Actual behavior

I would expect this would result in a successful reset.

Expected behavior

I did not get to reset my password. Instead, I got the error messages shown in the image below.

In addition to refreshing multiple times and clicking the link again from my inbox, none of the following passwords worked:

QWErty123$%^
QwErTy1@3$5^
M00C0wmaps123
MMM@@@pppsss123

image

@clash99
Copy link
Contributor

clash99 commented Dec 8, 2016

@bethschechter looks like you are meeting all the Upper/Lower/Number/Character requirements but the conflict is coming from your username and/or email. Can you provide those combos you tried?

@bethschechter
Copy link
Author

Sure @clash99. It was from the email [email protected]

@clash99 clash99 self-assigned this Dec 8, 2016
@wonderchook
Copy link
Contributor

@clash99 I was having the same problem with user "kate11"

@clash99
Copy link
Contributor

clash99 commented Dec 8, 2016

@wonderchook - on the forgotten password page or on the registration page? I'm able to recreate it from the emailed password link but not on the registration page.

@clash99
Copy link
Contributor

clash99 commented Dec 8, 2016

@oliverroick - looks like the username and email values aren't getting passed through to the password reset by key page (via email link). I will look at it more tomorrow.

@clash99
Copy link
Contributor

clash99 commented Dec 8, 2016

Fixed error message in pull request #986

@clash99 clash99 removed the PR: bugfix label Dec 8, 2016
@oliverroick
Copy link
Member

@clash99 I recovered the original solution before my cleanup from here and tested to reset the password. The problem is when the user is not signed in {{user.email}} and {{user.username}} are empty and the validation fails both with your and with my approach.

@oliverroick
Copy link
Member

oliverroick commented Dec 8, 2016

I addressed the issue (PR #988) by removing client-side validation from the password reset view. Let me explain: I had a PR ready that adds the user's username and email to the template and enables client-side validation. In this particular case, however, we might open a security hole, when we make the user's credentials public. If someone gets hold of the password reset link, they will get the username associated with the account and the new password, i.e. all information necessary to hijack the account. I checked back with @amplifi, and we decided to move validation entirely to the back-end for this view because it's too risky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants