2014-04-29 00:38:06 +00:00
|
|
|
==========================
|
|
|
|
Django 1.6.5 release notes
|
|
|
|
==========================
|
|
|
|
|
2014-05-14 16:07:32 +00:00
|
|
|
*May 14, 2014*
|
2014-04-29 00:38:06 +00:00
|
|
|
|
2014-05-15 11:11:29 +00:00
|
|
|
Django 1.6.5 fixes two security issues and several bugs in 1.6.4.
|
2014-05-14 16:07:32 +00:00
|
|
|
|
|
|
|
Issue: Caches may incorrectly be allowed to store and serve private data
|
|
|
|
========================================================================
|
2014-05-15 11:11:29 +00:00
|
|
|
|
2014-05-14 16:07:32 +00:00
|
|
|
In certain situations, Django may allow caches to store private data
|
|
|
|
related to a particular session and then serve that data to requests
|
2014-05-15 11:11:29 +00:00
|
|
|
with a different session, or no session at all. This can lead to
|
|
|
|
information disclosure and can be a vector for cache poisoning.
|
2014-05-14 16:07:32 +00:00
|
|
|
|
|
|
|
When using Django sessions, Django will set a ``Vary: Cookie`` header to
|
|
|
|
ensure caches do not serve cached data to requests from other sessions.
|
|
|
|
However, older versions of Internet Explorer (most likely only Internet
|
|
|
|
Explorer 6, and Internet Explorer 7 if run on Windows XP or Windows Server
|
|
|
|
2003) are unable to handle the ``Vary`` header in combination with many content
|
|
|
|
types. Therefore, Django would remove the header if the request was made by
|
|
|
|
Internet Explorer.
|
|
|
|
|
2014-05-15 11:11:29 +00:00
|
|
|
To remedy this, the special behavior for these older Internet Explorer versions
|
2014-05-14 16:07:32 +00:00
|
|
|
has been removed, and the ``Vary`` header is no longer stripped from the response.
|
|
|
|
In addition, modifications to the ``Cache-Control`` header for all Internet Explorer
|
2014-05-15 11:11:29 +00:00
|
|
|
requests with a ``Content-Disposition`` header have also been removed as they
|
2014-05-14 16:07:32 +00:00
|
|
|
were found to have similar issues.
|
|
|
|
|
|
|
|
Issue: Malformed redirect URLs from user input not correctly validated
|
|
|
|
======================================================================
|
2014-05-15 11:11:29 +00:00
|
|
|
|
2014-05-14 16:07:32 +00:00
|
|
|
The validation for redirects did not correctly validate some malformed URLs,
|
|
|
|
which are accepted by some browsers. This allows a user to be redirected to
|
|
|
|
an unsafe URL unexpectedly.
|
|
|
|
|
|
|
|
Django relies on user input in some cases (e.g.
|
2017-09-02 23:24:18 +00:00
|
|
|
``django.contrib.auth.views.login()``, ``django.contrib.comments``, and
|
2014-05-14 16:07:32 +00:00
|
|
|
:doc:`i18n </topics/i18n/index>`) to redirect the user to an "on success" URL.
|
|
|
|
The security checks for these redirects (namely
|
2015-02-20 14:20:38 +00:00
|
|
|
``django.utils.http.is_safe_url()``) did not correctly validate some malformed
|
2014-05-14 16:07:32 +00:00
|
|
|
URLs, such as `http:\\\\\\djangoproject.com`, which are accepted by some browsers
|
|
|
|
with more liberal URL parsing.
|
|
|
|
|
|
|
|
To remedy this, the validation in ``is_safe_url()`` has been tightened to be able
|
|
|
|
to handle and correctly validate these malformed URLs.
|
2014-04-29 00:38:06 +00:00
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2014-05-01 16:10:16 +00:00
|
|
|
* Made the ``year_lookup_bounds_for_datetime_field`` Oracle backend method
|
2014-12-19 14:54:29 +00:00
|
|
|
Python 3 compatible (:ticket:`22551`).
|
2014-05-02 17:31:22 +00:00
|
|
|
|
|
|
|
* Fixed ``pgettext_lazy`` crash when receiving bytestring content on Python 2
|
2014-12-19 14:54:29 +00:00
|
|
|
(:ticket:`22565`).
|
2014-04-28 12:27:36 +00:00
|
|
|
|
|
|
|
* Fixed the SQL generated when filtering by a negated ``Q`` object that contains
|
2014-12-19 14:54:29 +00:00
|
|
|
a ``F`` object. (:ticket:`22429`).
|
2014-05-12 16:43:50 +00:00
|
|
|
|
|
|
|
* Avoided overwriting data fetched by ``select_related()`` in certain cases
|
|
|
|
which could cause minor performance regressions
|
2014-12-19 14:54:29 +00:00
|
|
|
(:ticket:`22508`).
|