Vulnerability advisory
GHSA-6c7v-2f49-8h26
Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Also known as CVE-2019-12781PYSEC-2019-10
Severity
- CVSS 3.x
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Affected versions
| Affected | Fixed in |
|---|---|
2.1 to before 2.1.10 | 2.1.10Advisories → |
2.2 to before 2.2.3 | 2.2.3Advisories → |
1.11 to before 1.11.22 | 1.11.22Advisories → |
Description
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.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-12781 ↗
- Webdocs.djangoproject.com/en/dev/releases/security ↗
- Advisorygithub.com/advisories/GHSA-6c7v-2f49-8h26 ↗
- Packagegithub.com/django/django ↗
- Webgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-10.yaml ↗
- Webgroups.google.com/forum/#!topic/django-announce/Is4kLY9ZcZQ ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL ↗
- Webseclists.org/bugtraq/2019/Jul/10 ↗
- Websecurity.netapp.com/advisory/ntap-20190705-0002 ↗
- Webusn.ubuntu.com/4043-1 ↗
- Webwww.debian.org/security/2019/dsa-4476 ↗
- Webwww.djangoproject.com/weblog/2019/jul/01/security-releases ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html ↗
- Webwww.openwall.com/lists/oss-security/2019/07/01/3 ↗