Bug 1724497 (CVE-2019-12781) - CVE-2019-12781 Django: Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Summary: CVE-2019-12781 Django: Incorrect HTTP detection with reverse-proxy connecting...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-12781
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1726015 1729397 1705025 1726014 1726019 1727691 1727692 1727693 1727694 1727695 1727696 1727697 1728140
Blocks: 1724530
TreeView+ depends on / blocked
 
Reported: 2019-06-27 08:24 UTC by msiddiqu
Modified: 2023-09-07 20:11 UTC (History)
34 users (show)

Fixed In Version: Django 2.2.3, Django 2.1.10, Django 1.11.22
Doc Type: If docs needed, set a value
Doc Text:
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 SECURE_SSL_REDIRECT.
Clone Of:
Environment:
Last Closed: 2020-04-06 10:31:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1324 0 None None None 2020-04-06 09:01:23 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:55:34 UTC
Red Hat Product Errata RHSA-2020:4390 0 None None None 2020-10-28 18:23:07 UTC

Description msiddiqu 2019-06-27 08:24:15 UTC
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``.

Comment 7 Summer Long 2019-07-02 02:57:02 UTC
CVE now unembargoed, have add OSS reference to External References.

Comment 9 Summer Long 2019-07-02 03:00:09 UTC
Acknowledgments:

Name: the Django project
Upstream: Gavin Wahl

Comment 10 Summer Long 2019-07-02 03:00:11 UTC
External References:

https://www.djangoproject.com/weblog/2019/jul/01/security-releases/

Comment 11 Summer Long 2019-07-02 04:32:51 UTC
Created python-django tracking bugs for this issue:

Affects: epel-7 [bug 1726015]
Affects: fedora-30 [bug 1726014]

Comment 13 Summer Long 2019-07-08 03:52:35 UTC
Created python-django tracking bugs for this issue:

Affects: openstack-rdo [bug 1727697]

Comment 18 Summer Long 2019-07-09 22:11:00 UTC
Statement:

This issue does not affect any versions of python-django as shipped with Red Hat Update Infrastructure for Cloud Providers as the load balancer should not be configured to forward HTTP requests.

Comment 20 errata-xmlrpc 2020-04-06 09:01:20 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 15.0 (Stein)

Via RHSA-2020:1324 https://access.redhat.com/errata/RHSA-2020:1324

Comment 21 Product Security DevOps Team 2020-04-06 10:31:49 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-12781

Comment 27 errata-xmlrpc 2020-10-27 12:55:32 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.7 for RHEL 8

Via RHSA-2020:4366 https://access.redhat.com/errata/RHSA-2020:4366

Comment 30 errata-xmlrpc 2020-10-28 18:23:04 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 13.0 (Queens)
  Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUS

Via RHSA-2020:4390 https://access.redhat.com/errata/RHSA-2020:4390


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