Cleartext transmission of sensitive information in Django - CVE-2019-12781

 

Cleartext transmission of sensitive information in Django - CVE-2019-12781

Published: July 2, 2019


Vulnerability identifier: #VU18967
CSH Severity: Medium
CVSS v4: 4.8 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-12781
CWE-ID: CWE-319
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.
The vulnerability exists due to django.http.HttpRequest.scheme, when deployed behind a reverse-proxy, does not correctly treat requests sent over HTTP protocol, assuming that a secure protocol is used for communication. A remote attacker with ability to force victim to use HTTP instead of HTTPS protocol can perform man-in-the-middle (MitM) attack and intercept communication in cleat text.


Affected software

Django
Arch Linux
SUSE Linux
Opensuse
Fedora
py-django (Alpine package)
python-django (Debian package)
Django
python-django
python-django (Red Hat package)
Red Hat OpenStack
Red Hat OpenStack for IBM Power

How to mitigate CVE-2019-12781

Install updates from vendor's website.

Django - addressed in versions 1.11.22, 2.1.10, 2.2.3
py-django (Alpine package) - update to 1.11.22-r0
python-django (Debian package) - update to 1:1.10.7-2+deb9u5
Django - addressed in versions 1.6-2920190805151106.6c81f848, 1.6-3020190805151106.a5b0195c
python-django - update to 2.1.10-1.fc30
python-django (Red Hat package) - update to 2.1.11-1.el8ost

External References

Related Security Bulletins