-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Interesting rootspam from last night:
An exception occured in ocfweb:
Traceback (most recent call last):
File "/opt/ocfweb/venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/ocfweb/ocfweb/auth.py", line 53, in wrapper
return fn(request, *args, **kwargs)
File "/opt/ocfweb/ocfweb/account/register.py", line 75, in request_account
RSA.importKey(CREATE_PUBLIC_KEY),
File "/opt/ocfweb/venv/lib/python3.7/site-packages/ocflib/account/creation.py", line 435, in encrypt_password
return RSA_CIPHER.encrypt(password.encode('ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
Request:
* Host: www.ocf.berkeley.edu
* Path: /account/register/
* Method: POST
* Secure: True
I assume this is from someone trying to use non-ascii character in their password. I am not sure what the best practices for this are, but we should investigate this further and see if we can avoid using the ascii encoding.
Metadata
Metadata
Assignees
Labels
No labels