-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2019.2386
           [SECURITY] [DLA 1842-1] python-django security update
                                2 July 2019

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           python-django
Publisher:         Debian
Operating System:  Debian GNU/Linux 8
Impact/Access:     Cross-site Scripting -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-12308  

Reference:         ESB-2019.2384
                   ESB-2019.2017

Original Bulletin: 
   https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html

- --------------------------BEGIN INCLUDED TEXT--------------------

Package        : python-django
Version        : 1.7.11-1+deb8u6
CVE ID         : CVE-2019-12308
Debian Bug     : #931316

It was discovered that the Django Python web development framework
did not correct identify HTTP connections when a reverse proxy
connected 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 resulted in 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.

HttpRequest.scheme now respects SECURE_PROXY_SSL_HEADER, if it is
configured, and the appropriate header is set on the request, for
both HTTP and HTTPS requests.

If you deploy Django behind a reverse-proxy that forwards HTTP
requests, and that connects to Django via HTTPS, be sure to verify
that your application correctly handles code paths relying on scheme,
is_secure(), build_absolute_uri(), and SECURE_SSL_REDIRECT.

For Debian 8 "Jessie", this issue has been fixed in python-django version
1.7.11-1+deb8u6.

We recommend that you upgrade your python-django packages.


Regards,

- - -- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBXRqbM2aOgq3Tt24GAQifzBAAtvFOuHwX9qREvD1rLquzpX738B5s4dJr
Vp+HSDCkRYcX8PXwRoWf5xHxeYT1Juv5625Q1nUh5JwWFP5T0arcw57QCLDVLckJ
7hdxP/8ANNu4uU1ubkNs0JABlTkxgKBdPXfWlLWKUoaPXFsgwK8XShyjfjIQpUmO
2uDe5JxppIS4+w/+oC5zGEdaZheh9+of9T6VHlozWEL8EqTVQjxFJK6rsQOWeXOv
4fIHMsCSaCcY8OCf2MJPFmYnJ5+Enz8HbBtmsw8NiqJIZKZBBeKYposesUtofQqr
riN7LPPiMJF7UuiawatpNH4vTo6RUp1Mfg9CEG9+lbeLqkNS6enkra97k11l0hT/
Apib17HyfSZcxbCzUr4BIBGrqu/K/oUMUanzSrydgcDVKyeWTQ2OmE/dotEYZGwZ
9mLyIHJewfaRVfTCKyolZyb+eDIOSirGAgsCIyranx/P+X4xZgmRgfANbRJF6Apf
E/EaTHN9EK9v/LmtD0LYcAaK73P2M2pwCOdeNfmE8N2hCspOCafnfpCxB8H1+aJR
OO38cH8jFgeibLzKu9HCMCTAljcGwHzg2N4vAS2hGUoRga8FGf4rJHrT6Cv4Wohj
i1JKD1PkN6hNN+eg0AEsL58lcVKyMCCarxAf/5smtzC0yCk4fe+8aK4SB3Ne3Nw/
A1KO6aymxcQ=
=qFpu
-----END PGP SIGNATURE-----