Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
Moderate severity
GitHub Reviewed
Published
Jul 3, 2019
to the GitHub Advisory Database
•
Updated Sep 18, 2024
Package
Affected versions
>= 2.1, < 2.1.10
>= 2.2, < 2.2.3
>= 1.11, < 1.11.22
Patched versions
2.1.10
2.2.3
1.11.22
Description
Published by the National Vulnerability Database
Jul 1, 2019
Reviewed
Jul 3, 2019
Published to the GitHub Advisory Database
Jul 3, 2019
Last updated
Sep 18, 2024
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