mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails.
On successful submission of a password reset request, an email is sent to the accounts known to the system. If sending this email fails (due to email backend misconfiguration, service provider outage, network issues, etc.), an attacker might exploit this by detecting which password reset requests succeed and which ones generate a 500 error response. Thanks to Thibaut Spriet for the report, and to Mariusz Felisiak, Adam Johnson, and Sarah Boyce for the reviews.
This commit is contained in:
@@ -13,3 +13,14 @@ CVE-2024-45230: Potential denial-of-service vulnerability in ``django.utils.html
|
||||
:tfilter:`urlize` and :tfilter:`urlizetrunc` were subject to a potential
|
||||
denial-of-service attack via very large inputs with a specific sequence of
|
||||
characters.
|
||||
|
||||
CVE-2024-45231: Potential user email enumeration via response status on password reset
|
||||
======================================================================================
|
||||
|
||||
Due to unhandled email sending failures, the
|
||||
:class:`~django.contrib.auth.forms.PasswordResetForm` class allowed remote
|
||||
attackers to enumerate user emails by issuing password reset requests and
|
||||
observing the outcomes.
|
||||
|
||||
To mitigate this risk, exceptions occurring during password reset email sending
|
||||
are now handled and logged using the :ref:`django-contrib-auth-logger` logger.
|
||||
|
||||
Reference in New Issue
Block a user