~ / search / GHSA-6c7v-2f49-8h26

GHSA-6c7v-2f49-8h26

Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS

Source: GitHub Advisory Database (reviewed) Moderate CVE-2019-12781

Packages

EcosystemPackageAffectedFixed in
PyPI Django >= 2.1, < 2.1.10 2.1.10
PyPI Django >= 2.2, < 2.2.3 2.2.3
PyPI Django >= 1.11, < 1.11.22 1.11.22

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.