CVE-2019-12781
published 2019-07-01CVE-2019-12781: An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the…
PriorityP430medium5.3CVSS 3.0
AVNACLPRNUINSUCLINAN
EPSS
1.70%
74.3th percentile
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | python-django | < python-django 1:1.11.22-1 (bookworm) | python-django 1:1.11.22-1 (bookworm) |
| djangoproject | django | >= 1.11 < 1.11.22 | 1.11.22 |
| djangoproject | django | >= 1.11 < 1.11.22 | 1.11.22 |
| djangoproject | django | >= 2.1 < 2.1.10 | 2.1.10 |
| djangoproject | django | >= 2.1 < 2.1.10 | 2.1.10 |
| djangoproject | django | >= 2.2 < 2.2.3 | 2.2.3 |
| djangoproject | django | >= 2.2 < 2.2.3 | 2.2.3 |
CVSS provenance
nvdv3.05.3MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv6.1MEDIUM
vendor_ubuntu6.1MEDIUM
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
osv·2019-07-03
CVE-2019-12781 [MEDIUM] Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
GHSA
Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
ghsa·2019-07-03
CVE-2019-12781 [MEDIUM] CWE-319 Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
OSV
CVE-2019-12781: An issue was discovered in Django 1
osv·2019-07-01·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781: An issue was discovered in Django 1
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
OSV
python-django vulnerabilities
osv·2019-07-01·CVSS 6.1
CVE-2019-12308 [MEDIUM] python-django vulnerabilities
python-django vulnerabilities
It was discovered that Django incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
This issue only affected Ubuntu 18.04 LTS, Ubuntu 18.10 and Ubuntu 19.04.
(CVE-2019-12308)
Gavin Wahl discovered that Django incorrectly handled HTTP detection when used behind a reverse-proxy. Client requests made via HTTP would cause incorrect API results and would not be redirected to HTTPS, contrary to expectations. (CVE-2019-12781)
Red Hat
Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
vendor_redhat·2019-07-01·CVSS 5.3
CVE-2019-12781 [MEDIUM] CWE-358 Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
An HTTP detection flaw was discovered in Django. If deployed behind a reverse-proxy connecting to Django via HTTPS, django.http.HttpRequest.scheme() incorrectly detected client requests made using HTTP as using HTTPS. This resulted in incorrect results for is_secure() and build_absolute_uri(), and HTTP requests were not correctly redirected to HTTPS in accordance with
Ubuntu
Django vulnerabilities
vendor_ubuntu·2019-07-01·CVSS 6.1
CVE-2019-12308 [MEDIUM] Django vulnerabilities
Title: Django vulnerabilities
Summary: Several security issues were fixed in Django.
It was discovered that Django incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
This issue only affected Ubuntu 18.04 LTS, Ubuntu 18.10 and Ubuntu 19.04.
(CVE-2019-12308)
Gavin Wahl discovered that Django incorrectly handled HTTP detection when used behind a reverse-proxy. Client requests made via HTTP would cause incorrect API results and would not be redirected to HTTPS, contrary to expectations. (CVE-2019-12781)
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2019-12781: python-django - An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2....
vendor_debian·2019·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781: python-django - An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2....
An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.
Scope: local
bookworm: resolved (fixed in 1:1.11.22-1)
bullseye: resolved (fixed in 1:1.11.22-1)
forky: resolved (fixed in 1:1.11.22-1)
sid: resolved (fixed in 1:1.11.22-1)
trixie: resolved (fixed in 1:1.11.22-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [openstack-rdo]
bugzilla·2019-07-08·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [openstack-rdo]
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [openstack-rdo]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of openstack-rdo.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discuss
Bugzilla
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [fedora-30]
bugzilla·2019-07-02·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [fedora-30]
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [fedora-30]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-30.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use
Bugzilla
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [epel-7]
bugzilla·2019-07-02·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [epel-7]
CVE-2019-12781 python-django: Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the f
Bugzilla
CVE-2019-12781 Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
bugzilla·2019-06-27·CVSS 5.3
CVE-2019-12781 [MEDIUM] CVE-2019-12781 Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
CVE-2019-12781 Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
When deployed behind a reverse-proxy connecting to Django via HTTPS, ``django.http.HttpRequest.scheme`` would incorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results for ``is_secure()``, and ``build_absolute_uri()``, and that HTTP requests would not be redirected to HTTPS in accordance with ``SECURE_SSL_REDIRECT``.
Discussion:
CVE now unembargoed, have add OSS reference to External References.
---
Acknowledgments:
Name: the Django project
Upstream: Gavin Wahl
---
External References:
https://www.djangoproject.com/weblog/2019/jul/01/security-releases/
---
Created python-django tracking bugs for this issue:
Affects: epel-7 [bug 1726015]
Affects: fedora-3
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.htmlhttp://www.openwall.com/lists/oss-security/2019/07/01/3http://www.securityfocus.com/bid/109018https://docs.djangoproject.com/en/dev/releases/security/https://groups.google.com/forum/#%21topic/django-announce/Is4kLY9ZcZQhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL/https://seclists.org/bugtraq/2019/Jul/10https://security.netapp.com/advisory/ntap-20190705-0002/https://usn.ubuntu.com/4043-1/https://www.debian.org/security/2019/dsa-4476https://www.djangoproject.com/weblog/2019/jul/01/security-releases/http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.htmlhttp://www.openwall.com/lists/oss-security/2019/07/01/3http://www.securityfocus.com/bid/109018https://docs.djangoproject.com/en/dev/releases/security/https://groups.google.com/forum/#%21topic/django-announce/Is4kLY9ZcZQhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL/https://seclists.org/bugtraq/2019/Jul/10https://security.netapp.com/advisory/ntap-20190705-0002/https://usn.ubuntu.com/4043-1/https://www.debian.org/security/2019/dsa-4476https://www.djangoproject.com/weblog/2019/jul/01/security-releases/
2019-07-01
Published