#35492: Replace call to User.set_password with make_password in authenticate ------------------------------------------------+------------------------ Reporter: Natalia Bidart | Owner: nobody Type: Cleanup/optimization | Status: new Component: contrib.auth | Version: dev Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ------------------------------------------------+------------------------ In the current implementation of `ModelBackend.authenticate()`, `set_password()` is invoked on an empty User model to conceal timing differences between existing and non-existing users, thereby preventing password timing attacks. However, relying on `set_password()` in this context may lead to unintended consequences, given it is a public and overridable method of the model. The Security Team suggested to directly call `make_password()` instead to achieve the same desired timing effect. -- Ticket URL: <https://code.djangoproject.com/ticket/35492> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines.
-- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018fceba866e-557e4ffd-8658-41ef-8c17-d3b45a257ff2-000000%40eu-central-1.amazonses.com.