csua-backend
csua-backend copied to clipboard
apps.ldap.utils.create_new_user leaks private info
In debug emails sent to root@, user passwords are revealed from the debug info in apps.ldap.utils.create_new_user. The fix is to use the sensitive_variables
decorator.
https://docs.djangoproject.com/en/2.2/howto/error-reporting/#django.views.decorators.debug.sensitive_variables
https://github.com/CSUA/csua-backend/blob/f8096fb989b9e4761eafded56d3b6c4e5dd0b2a6/apps/ldap/utils.py#L82