Bug 1788425 (CVE-2019-19844) - CVE-2019-19844 Django: crafted email address allows account takeover
Summary: CVE-2019-19844 Django: crafted email address allows account takeover
Keywords:
Status: NEW
Alias: CVE-2019-19844
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1788428 1788769 1789224 1789225 1789234 1789417 1789418 1788426 1788427 1788429 1789033 1789182 1789183 1789184
Blocks: 1788430
TreeView+ depends on / blocked
 
Reported: 2020-01-07 07:38 UTC by msiddiqu
Modified: 2020-02-10 20:15 UTC (History)
34 users (show)

Fixed In Version: Django 3.0.1, Django 2.2.9, Django 1.11.27
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Django where it did not sanitize the email input from the password recovery form. An attacker with the knowledge of the victim user’s email address could use this flaw to reset the victim user’s password and retrieve the reset link to gain access and take over their account.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description msiddiqu 2020-01-07 07:38:15 UTC
Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. A suitably crafted email address (that is equal to an existing user's email address after case transformation of Unicode characters) would allow an attacker to be sent a password reset token for the matched user account. (One mitigation in the new releases is to send password reset tokens only to the registered user email address.)

External References:

https://www.djangoproject.com/weblog/2019/dec/18/security-releases/

References: 

https://seclists.org/oss-sec/2019/q4/163

Comment 1 msiddiqu 2020-01-07 07:40:08 UTC
Created python-django tracking bugs for this issue:

Affects: epel-7 [bug 1788427]
Affects: epel-8 [bug 1788429]
Affects: fedora-all [bug 1788426]


Created python-django16 tracking bugs for this issue:

Affects: epel-7 [bug 1788428]

Comment 2 Summer Long 2020-01-08 03:30:58 UTC
Created python-django tracking bugs for this issue:

Affects: openstack-rdo [bug 1788769]

Comment 7 Riccardo Schirone 2020-01-08 15:45:02 UTC
This vulnerability can be exploited in applications that use PasswordResetForm.

Comment 16 Summer Long 2020-01-09 22:27:09 UTC
Mitigation:

Unless the password-reset form is disabled, this flaw can only be resolved by applying updates.

Comment 17 Cedric Buissart 🐶 2020-01-10 08:05:40 UTC
Statement:

This flaw depends upon the use of Django's password reset functionality. The following products ship the flawed code but do not use this functionality:
* Red Hat Ceph Storage 2 and Red Hat Ceph Storage 3
* Red Hat Gluster Storage 3
* Red Hat Certified Cloud and Service Provider Certification 1
* Red Hat OpenStack Platform, all versions
* Red Hat Satellite 6, all versions


Note You need to log in before you can comment on or make changes to this bug.