-
Notifications
You must be signed in to change notification settings - Fork 661
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
Leaking sensitive passwords in error emails #222
Comments
@crearc I believe you get that information, because realize error emails in your system in little bit wrong way. |
Sorry, I'm not sure what you're saying? |
@crearc trouble in your code, not inside that application |
I have no code/interaction to affect the way rest_auth works at this endpoint so I'm not sure how that would be the case. I get a This is what the traceback looks like in the email (sorry it's ugly, see towards the end of it):
|
@crearc would you like get email every time when any user can't enter correct password at your web-site, but you preferred get *** instead not correct password? |
I've already filtered out emails for being unable to login, and I'm not actually sure what the validation error technically was for the above, but regardless of how someone handles their logging when using rest-auth, it should never be sending plain text passwords over error emails. This is exactly what |
(In reference to the weird Validation error, I think it's fixed in encode/django-rest-framework#3908 but won't be released until 3.4, but my point still exists) |
Thank you! Added |
I believe this is leaking the user's password when a user fails to validate while logging in. On my system, I am getting their password in raw text via error emails. I think that this should be using Django's sensitive_variables decorator in the LoginView.
Thoughts?
The text was updated successfully, but these errors were encountered: