Add files using upload-large-folder tool
Browse files- testbed/django__django/docs/releases/1.3.7.txt +13 -0
- testbed/django__django/docs/releases/1.4.11.txt +108 -0
- testbed/django__django/docs/releases/1.4.17.txt +16 -0
- testbed/django__django/docs/releases/1.4.18.txt +68 -0
- testbed/django__django/docs/releases/1.4.19.txt +16 -0
- testbed/django__django/docs/releases/1.4.5.txt +13 -0
- testbed/django__django/docs/releases/1.4.8.txt +32 -0
- testbed/django__django/docs/releases/1.4.9.txt +21 -0
- testbed/django__django/docs/releases/1.5.10.txt +13 -0
- testbed/django__django/docs/releases/1.5.11.txt +16 -0
- testbed/django__django/docs/releases/1.5.12.txt +14 -0
- testbed/django__django/docs/releases/1.5.3.txt +50 -0
- testbed/django__django/docs/releases/1.5.4.txt +40 -0
- testbed/django__django/docs/releases/1.5.5.txt +39 -0
- testbed/django__django/docs/releases/1.5.6.txt +117 -0
- testbed/django__django/docs/releases/1.6.10.txt +69 -0
- testbed/django__django/docs/releases/1.6.11.txt +43 -0
- testbed/django__django/docs/releases/1.6.2.txt +52 -0
- testbed/django__django/docs/releases/1.6.7.txt +16 -0
- testbed/django__django/docs/releases/1.6.8.txt +15 -0
- testbed/django__django/docs/releases/1.6.9.txt +16 -0
- testbed/django__django/docs/releases/1.7.10.txt +26 -0
- testbed/django__django/docs/releases/1.7.11.txt +26 -0
- testbed/django__django/docs/releases/1.7.3.txt +90 -0
- testbed/django__django/docs/releases/1.7.4.txt +26 -0
- testbed/django__django/docs/releases/1.7.5.txt +27 -0
- testbed/django__django/docs/releases/1.7.6.txt +30 -0
- testbed/django__django/docs/releases/1.7.7.txt +54 -0
- testbed/django__django/docs/releases/1.7.8.txt +15 -0
- testbed/django__django/docs/releases/1.8.10.txt +80 -0
- testbed/django__django/docs/releases/1.8.12.txt +20 -0
- testbed/django__django/docs/releases/1.8.13.txt +16 -0
- testbed/django__django/docs/releases/1.8.14.txt +25 -0
- testbed/django__django/docs/releases/1.8.15.txt +18 -0
- testbed/django__django/docs/releases/1.8.16.txt +43 -0
- testbed/django__django/docs/releases/1.8.18.txt +30 -0
- testbed/django__django/docs/releases/1.8.19.txt +30 -0
- testbed/django__django/docs/releases/1.8.4.txt +50 -0
- testbed/django__django/docs/releases/1.8.5.txt +60 -0
- testbed/django__django/docs/releases/1.8.6.txt +53 -0
- testbed/django__django/docs/releases/1.8.7.txt +66 -0
- testbed/django__django/docs/releases/1.8.8.txt +60 -0
- testbed/django__django/docs/releases/1.9.1.txt +85 -0
- testbed/django__django/docs/releases/1.9.10.txt +18 -0
- testbed/django__django/docs/releases/1.9.11.txt +43 -0
- testbed/django__django/docs/releases/1.9.12.txt +14 -0
- testbed/django__django/docs/releases/1.9.7.txt +31 -0
- testbed/django__django/docs/releases/1.9.8.txt +28 -0
- testbed/django__django/docs/releases/2.1.3.txt +26 -0
- testbed/django__django/docs/releases/2.1.5.txt +38 -0
testbed/django__django/docs/releases/1.3.7.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.3.7 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*February 20, 2013*
|
| 6 |
+
|
| 7 |
+
Django 1.3.7 corrects a packaging problem with yesterday's :doc:`1.3.6 release
|
| 8 |
+
</releases/1.3.6>`.
|
| 9 |
+
|
| 10 |
+
The release contained stray ``.pyc`` files that caused "bad magic number"
|
| 11 |
+
errors when running with some versions of Python. This releases corrects this,
|
| 12 |
+
and also fixes a bad documentation link in the project template ``settings.py``
|
| 13 |
+
file generated by ``manage.py startproject``.
|
testbed/django__django/docs/releases/1.4.11.txt
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.4.11 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*April 21, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.4.11 fixes three security issues in 1.4.10. Additionally,
|
| 8 |
+
Django's vendored version of six, ``django.utils.six``, has been
|
| 9 |
+
upgraded to the latest release (1.6.1).
|
| 10 |
+
|
| 11 |
+
Unexpected code execution using ``reverse()``
|
| 12 |
+
=============================================
|
| 13 |
+
|
| 14 |
+
Django's URL handling is based on a mapping of regex patterns
|
| 15 |
+
(representing the URLs) to callable views, and Django's own processing
|
| 16 |
+
consists of matching a requested URL against those patterns to
|
| 17 |
+
determine the appropriate view to invoke.
|
| 18 |
+
|
| 19 |
+
Django also provides a convenience function -- ``reverse()`` -- which performs
|
| 20 |
+
this process in the opposite direction. The ``reverse()`` function takes
|
| 21 |
+
information about a view and returns a URL which would invoke that view. Use
|
| 22 |
+
of ``reverse()`` is encouraged for application developers, as the output of
|
| 23 |
+
``reverse()`` is always based on the current URL patterns, meaning developers
|
| 24 |
+
do not need to change other code when making changes to URLs.
|
| 25 |
+
|
| 26 |
+
One argument signature for ``reverse()`` is to pass a dotted Python
|
| 27 |
+
path to the desired view. In this situation, Django will import the
|
| 28 |
+
module indicated by that dotted path as part of generating the
|
| 29 |
+
resulting URL. If such a module has import-time side effects, those
|
| 30 |
+
side effects will occur.
|
| 31 |
+
|
| 32 |
+
Thus it is possible for an attacker to cause unexpected code
|
| 33 |
+
execution, given the following conditions:
|
| 34 |
+
|
| 35 |
+
1. One or more views are present which construct a URL based on user
|
| 36 |
+
input (commonly, a "next" parameter in a querystring indicating
|
| 37 |
+
where to redirect upon successful completion of an action).
|
| 38 |
+
|
| 39 |
+
2. One or more modules are known to an attacker to exist on the
|
| 40 |
+
server's Python import path, which perform code execution with side
|
| 41 |
+
effects on importing.
|
| 42 |
+
|
| 43 |
+
To remedy this, ``reverse()`` will now only accept and import dotted
|
| 44 |
+
paths based on the view-containing modules listed in the project's :doc:`URL
|
| 45 |
+
pattern configuration </topics/http/urls>`, so as to ensure that only modules
|
| 46 |
+
the developer intended to be imported in this fashion can or will be imported.
|
| 47 |
+
|
| 48 |
+
Caching of anonymous pages could reveal CSRF token
|
| 49 |
+
==================================================
|
| 50 |
+
|
| 51 |
+
Django includes both a :doc:`caching framework </topics/cache>` and a system
|
| 52 |
+
for :doc:`preventing cross-site request forgery (CSRF) attacks
|
| 53 |
+
</ref/csrf/>`. The CSRF-protection system is based on a random nonce
|
| 54 |
+
sent to the client in a cookie which must be sent by the client on future
|
| 55 |
+
requests and, in forms, a hidden value which must be submitted back with the
|
| 56 |
+
form.
|
| 57 |
+
|
| 58 |
+
The caching framework includes an option to cache responses to
|
| 59 |
+
anonymous (i.e., unauthenticated) clients.
|
| 60 |
+
|
| 61 |
+
When the first anonymous request to a given page is by a client which
|
| 62 |
+
did not have a CSRF cookie, the cache framework will also cache the
|
| 63 |
+
CSRF cookie and serve the same nonce to other anonymous clients who
|
| 64 |
+
do not have a CSRF cookie. This can allow an attacker to obtain a
|
| 65 |
+
valid CSRF cookie value and perform attacks which bypass the check for
|
| 66 |
+
the cookie.
|
| 67 |
+
|
| 68 |
+
To remedy this, the caching framework will no longer cache such
|
| 69 |
+
responses. The heuristic for this will be:
|
| 70 |
+
|
| 71 |
+
1. If the incoming request did not submit any cookies, and
|
| 72 |
+
|
| 73 |
+
2. If the response did send one or more cookies, and
|
| 74 |
+
|
| 75 |
+
3. If the ``Vary: Cookie`` header is set on the response, then the
|
| 76 |
+
response will not be cached.
|
| 77 |
+
|
| 78 |
+
MySQL typecasting
|
| 79 |
+
=================
|
| 80 |
+
|
| 81 |
+
The MySQL database is known to "typecast" on certain queries; for
|
| 82 |
+
example, when querying a table which contains string values, but using
|
| 83 |
+
a query which filters based on an integer value, MySQL will first
|
| 84 |
+
silently coerce the strings to integers and return a result based on that.
|
| 85 |
+
|
| 86 |
+
If a query is performed without first converting values to the
|
| 87 |
+
appropriate type, this can produce unexpected results, similar to what
|
| 88 |
+
would occur if the query itself had been manipulated.
|
| 89 |
+
|
| 90 |
+
Django's model field classes are aware of their own types and most
|
| 91 |
+
such classes perform explicit conversion of query arguments to the
|
| 92 |
+
correct database-level type before querying. However, three model
|
| 93 |
+
field classes did not correctly convert their arguments:
|
| 94 |
+
|
| 95 |
+
* :class:`~django.db.models.FilePathField`
|
| 96 |
+
* :class:`~django.db.models.GenericIPAddressField`
|
| 97 |
+
* ``IPAddressField``
|
| 98 |
+
|
| 99 |
+
These three fields have been updated to convert their arguments to the
|
| 100 |
+
correct types before querying.
|
| 101 |
+
|
| 102 |
+
Additionally, developers of custom model fields are now warned via
|
| 103 |
+
documentation to ensure their custom field classes will perform
|
| 104 |
+
appropriate type conversions, and users of the :meth:`raw()
|
| 105 |
+
<django.db.models.query.QuerySet.raw>` and :meth:`extra()
|
| 106 |
+
<django.db.models.query.QuerySet.extra>` query methods -- which allow the
|
| 107 |
+
developer to supply raw SQL or SQL fragments -- will be advised to ensure they
|
| 108 |
+
perform appropriate manual type conversions prior to executing queries.
|
testbed/django__django/docs/releases/1.4.17.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.4.17 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*January 2, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.4.17 fixes a regression in the 1.4.14 security release.
|
| 8 |
+
|
| 9 |
+
Additionally, Django's vendored version of six, ``django.utils.six``, has
|
| 10 |
+
been upgraded to the latest release (1.9.0).
|
| 11 |
+
|
| 12 |
+
Bugfixes
|
| 13 |
+
========
|
| 14 |
+
|
| 15 |
+
* Fixed a regression with dynamically generated inlines and allowed field
|
| 16 |
+
references in the admin (:ticket:`23754`).
|
testbed/django__django/docs/releases/1.4.18.txt
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.4.18 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*January 13, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.4.18 fixes several security issues in 1.4.17 as well as a regression
|
| 8 |
+
on Python 2.5 in the 1.4.17 release.
|
| 9 |
+
|
| 10 |
+
WSGI header spoofing via underscore/dash conflation
|
| 11 |
+
===================================================
|
| 12 |
+
|
| 13 |
+
When HTTP headers are placed into the WSGI environ, they are normalized by
|
| 14 |
+
converting to uppercase, converting all dashes to underscores, and prepending
|
| 15 |
+
``HTTP_``. For instance, a header ``X-Auth-User`` would become
|
| 16 |
+
``HTTP_X_AUTH_USER`` in the WSGI environ (and thus also in Django's
|
| 17 |
+
``request.META`` dictionary).
|
| 18 |
+
|
| 19 |
+
Unfortunately, this means that the WSGI environ cannot distinguish between
|
| 20 |
+
headers containing dashes and headers containing underscores: ``X-Auth-User``
|
| 21 |
+
and ``X-Auth_User`` both become ``HTTP_X_AUTH_USER``. This means that if a
|
| 22 |
+
header is used in a security-sensitive way (for instance, passing
|
| 23 |
+
authentication information along from a front-end proxy), even if the proxy
|
| 24 |
+
carefully strips any incoming value for ``X-Auth-User``, an attacker may be
|
| 25 |
+
able to provide an ``X-Auth_User`` header (with underscore) and bypass this
|
| 26 |
+
protection.
|
| 27 |
+
|
| 28 |
+
In order to prevent such attacks, both Nginx and Apache 2.4+ strip all headers
|
| 29 |
+
containing underscores from incoming requests by default. Django's built-in
|
| 30 |
+
development server now does the same. Django's development server is not
|
| 31 |
+
recommended for production use, but matching the behavior of common production
|
| 32 |
+
servers reduces the surface area for behavior changes during deployment.
|
| 33 |
+
|
| 34 |
+
Mitigated possible XSS attack via user-supplied redirect URLs
|
| 35 |
+
=============================================================
|
| 36 |
+
|
| 37 |
+
Django relies on user input in some cases (e.g.
|
| 38 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 39 |
+
to redirect the user to an "on success" URL. The security checks for these
|
| 40 |
+
redirects (namely ``django.utils.http.is_safe_url()``) didn't strip leading
|
| 41 |
+
whitespace on the tested URL and as such considered URLs like
|
| 42 |
+
``\njavascript:...`` safe. If a developer relied on ``is_safe_url()`` to
|
| 43 |
+
provide safe redirect targets and put such a URL into a link, they could suffer
|
| 44 |
+
from a XSS attack. This bug doesn't affect Django currently, since we only put
|
| 45 |
+
this URL into the ``Location`` response header and browsers seem to ignore
|
| 46 |
+
JavaScript there.
|
| 47 |
+
|
| 48 |
+
Denial-of-service attack against ``django.views.static.serve``
|
| 49 |
+
==============================================================
|
| 50 |
+
|
| 51 |
+
In older versions of Django, the :func:`django.views.static.serve` view read
|
| 52 |
+
the files it served one line at a time. Therefore, a big file with no newlines
|
| 53 |
+
would result in memory usage equal to the size of that file. An attacker could
|
| 54 |
+
exploit this and launch a denial-of-service attack by simultaneously requesting
|
| 55 |
+
many large files. This view now reads the file in chunks to prevent large
|
| 56 |
+
memory usage.
|
| 57 |
+
|
| 58 |
+
Note, however, that this view has always carried a warning that it is not
|
| 59 |
+
hardened for production use and should be used only as a development aid. Now
|
| 60 |
+
may be a good time to audit your project and serve your files in production
|
| 61 |
+
using a real front-end web server if you are not doing so.
|
| 62 |
+
|
| 63 |
+
Bugfixes
|
| 64 |
+
========
|
| 65 |
+
|
| 66 |
+
* To maintain compatibility with Python 2.5, Django's vendored version of six,
|
| 67 |
+
``django.utils.six``, has been downgraded to 1.8.0 which is the last
|
| 68 |
+
version to support Python 2.5.
|
testbed/django__django/docs/releases/1.4.19.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.4.19 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*January 27, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.4.19 fixes a regression in the 1.4.18 security release.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* ``GZipMiddleware`` now supports streaming responses. As part of the 1.4.18
|
| 13 |
+
security release, the ``django.views.static.serve()`` function was altered
|
| 14 |
+
to stream the files it serves. Unfortunately, the ``GZipMiddleware`` consumed
|
| 15 |
+
the stream prematurely and prevented files from being served properly
|
| 16 |
+
(:ticket:`24158`).
|
testbed/django__django/docs/releases/1.4.5.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.4.5 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*February 20, 2013*
|
| 6 |
+
|
| 7 |
+
Django 1.4.5 corrects a packaging problem with yesterday's :doc:`1.4.4 release
|
| 8 |
+
</releases/1.4.4>`.
|
| 9 |
+
|
| 10 |
+
The release contained stray ``.pyc`` files that caused "bad magic number"
|
| 11 |
+
errors when running with some versions of Python. This releases corrects this,
|
| 12 |
+
and also fixes a bad documentation link in the project template ``settings.py``
|
| 13 |
+
file generated by ``manage.py startproject``.
|
testbed/django__django/docs/releases/1.4.8.txt
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.4.8 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*September 14, 2013*
|
| 6 |
+
|
| 7 |
+
Django 1.4.8 fixes two security issues present in previous Django releases in
|
| 8 |
+
the 1.4 series.
|
| 9 |
+
|
| 10 |
+
Denial-of-service via password hashers
|
| 11 |
+
======================================
|
| 12 |
+
|
| 13 |
+
In previous versions of Django, no limit was imposed on the plaintext
|
| 14 |
+
length of a password. This allowed a denial-of-service attack through
|
| 15 |
+
submission of bogus but extremely large passwords, tying up server
|
| 16 |
+
resources performing the (expensive, and increasingly expensive with
|
| 17 |
+
the length of the password) calculation of the corresponding hash.
|
| 18 |
+
|
| 19 |
+
As of 1.4.8, Django's authentication framework imposes a 4096-byte
|
| 20 |
+
limit on passwords and will fail authentication with any submitted
|
| 21 |
+
password of greater length.
|
| 22 |
+
|
| 23 |
+
Corrected usage of :func:`~django.views.decorators.debug.sensitive_post_parameters` in :mod:`django.contrib.auth`’s admin
|
| 24 |
+
=========================================================================================================================
|
| 25 |
+
|
| 26 |
+
The decoration of the ``add_view`` and ``user_change_password`` user admin
|
| 27 |
+
views with :func:`~django.views.decorators.debug.sensitive_post_parameters`
|
| 28 |
+
did not include :func:`~django.utils.decorators.method_decorator` (required
|
| 29 |
+
since the views are methods) resulting in the decorator not being properly
|
| 30 |
+
applied. This usage has been fixed and
|
| 31 |
+
:func:`~django.views.decorators.debug.sensitive_post_parameters` will now
|
| 32 |
+
throw an exception if it's improperly used.
|
testbed/django__django/docs/releases/1.4.9.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.4.9 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*October 23, 2013*
|
| 6 |
+
|
| 7 |
+
Django 1.4.9 fixes a security-related bug in the 1.4 series and one other
|
| 8 |
+
data corruption bug.
|
| 9 |
+
|
| 10 |
+
Readdressed denial-of-service via password hashers
|
| 11 |
+
==================================================
|
| 12 |
+
|
| 13 |
+
Django 1.4.8 imposes a 4096-byte limit on passwords in order to mitigate a
|
| 14 |
+
denial-of-service attack through submission of bogus but extremely large
|
| 15 |
+
passwords. In Django 1.4.9, we've reverted this change and instead improved
|
| 16 |
+
the speed of our PBKDF2 algorithm by not rehashing the key on every iteration.
|
| 17 |
+
|
| 18 |
+
Bugfixes
|
| 19 |
+
========
|
| 20 |
+
|
| 21 |
+
* Fixed a data corruption bug with ``datetime_safe.datetime.combine`` (#21256).
|
testbed/django__django/docs/releases/1.5.10.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.5.10 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*September 2, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.5.10 fixes a regression in the 1.5.9 security release.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Allowed inherited and m2m fields to be referenced in the admin
|
| 13 |
+
(:ticket:`22486`)
|
testbed/django__django/docs/releases/1.5.11.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.5.11 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*October 22, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.5.11 fixes a couple regressions in the 1.5.9 security release.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Allowed related many-to-many fields to be referenced in the admin
|
| 13 |
+
(:ticket:`23604`).
|
| 14 |
+
|
| 15 |
+
* Allowed inline and hidden references to admin fields
|
| 16 |
+
(:ticket:`23431`).
|
testbed/django__django/docs/releases/1.5.12.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.5.12 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*January 2, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.5.12 fixes a regression in the 1.5.9 security release.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Fixed a regression with dynamically generated inlines and allowed field
|
| 13 |
+
references in the admin
|
| 14 |
+
(:ticket:`23754`).
|
testbed/django__django/docs/releases/1.5.3.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.5.3 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*September 10, 2013*
|
| 6 |
+
|
| 7 |
+
This is Django 1.5.3, the third release in the Django 1.5 series. It addresses
|
| 8 |
+
one security issue and also contains an opt-in feature to enhance the security
|
| 9 |
+
of :mod:`django.contrib.sessions`.
|
| 10 |
+
|
| 11 |
+
Directory traversal vulnerability in ``ssi`` template tag
|
| 12 |
+
=========================================================
|
| 13 |
+
|
| 14 |
+
In previous versions of Django it was possible to bypass the
|
| 15 |
+
``ALLOWED_INCLUDE_ROOTS`` setting used for security with the ``ssi``
|
| 16 |
+
template tag by specifying a relative path that starts with one of the allowed
|
| 17 |
+
roots. For example, if ``ALLOWED_INCLUDE_ROOTS = ("/var/www",)`` the following
|
| 18 |
+
would be possible:
|
| 19 |
+
|
| 20 |
+
.. code-block:: html+django
|
| 21 |
+
|
| 22 |
+
{% ssi "/var/www/../../etc/passwd" %}
|
| 23 |
+
|
| 24 |
+
In practice this is not a very common problem, as it would require the template
|
| 25 |
+
author to put the ``ssi`` file in a user-controlled variable, but it's possible
|
| 26 |
+
in principle.
|
| 27 |
+
|
| 28 |
+
Mitigating a remote-code execution vulnerability in :mod:`django.contrib.sessions`
|
| 29 |
+
==================================================================================
|
| 30 |
+
|
| 31 |
+
:mod:`django.contrib.sessions` currently uses :mod:`pickle` to serialize
|
| 32 |
+
session data before storing it in the backend. If you're using the :ref:`signed
|
| 33 |
+
cookie session backend<cookie-session-backend>` and :setting:`SECRET_KEY` is
|
| 34 |
+
known by an attacker (there isn't an inherent vulnerability in Django that
|
| 35 |
+
would cause it to leak), the attacker could insert a string into their session
|
| 36 |
+
which, when unpickled, executes arbitrary code on the server. The technique for
|
| 37 |
+
doing so is simple and easily available on the internet. Although the cookie
|
| 38 |
+
session storage signs the cookie-stored data to prevent tampering, a
|
| 39 |
+
:setting:`SECRET_KEY` leak immediately escalates to a remote code execution
|
| 40 |
+
vulnerability.
|
| 41 |
+
|
| 42 |
+
This attack can be mitigated by serializing session data using JSON rather
|
| 43 |
+
than :mod:`pickle`. To facilitate this, Django 1.5.3 introduces a new setting,
|
| 44 |
+
:setting:`SESSION_SERIALIZER`, to customize the session serialization format.
|
| 45 |
+
For backwards compatibility, this setting defaults to using :mod:`pickle`.
|
| 46 |
+
While JSON serialization does not support all Python objects like :mod:`pickle`
|
| 47 |
+
does, we highly recommend switching to JSON-serialized values. Also,
|
| 48 |
+
as JSON requires string keys, you will likely run into problems if you are
|
| 49 |
+
using non-string keys in ``request.session``. See the
|
| 50 |
+
:ref:`session_serialization` documentation for more details.
|
testbed/django__django/docs/releases/1.5.4.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.5.4 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*September 14, 2013*
|
| 6 |
+
|
| 7 |
+
This is Django 1.5.4, the fourth release in the Django 1.5 series. It addresses
|
| 8 |
+
two security issues and one bug.
|
| 9 |
+
|
| 10 |
+
Denial-of-service via password hashers
|
| 11 |
+
======================================
|
| 12 |
+
|
| 13 |
+
In previous versions of Django, no limit was imposed on the plaintext
|
| 14 |
+
length of a password. This allowed a denial-of-service attack through
|
| 15 |
+
submission of bogus but extremely large passwords, tying up server
|
| 16 |
+
resources performing the (expensive, and increasingly expensive with
|
| 17 |
+
the length of the password) calculation of the corresponding hash.
|
| 18 |
+
|
| 19 |
+
As of 1.5.4, Django's authentication framework imposes a 4096-byte
|
| 20 |
+
limit on passwords, and will fail authentication with any submitted
|
| 21 |
+
password of greater length.
|
| 22 |
+
|
| 23 |
+
Corrected usage of :func:`~django.views.decorators.debug.sensitive_post_parameters` in :mod:`django.contrib.auth`’s admin
|
| 24 |
+
=========================================================================================================================
|
| 25 |
+
|
| 26 |
+
The decoration of the ``add_view`` and ``user_change_password`` user admin
|
| 27 |
+
views with :func:`~django.views.decorators.debug.sensitive_post_parameters`
|
| 28 |
+
did not include :func:`~django.utils.decorators.method_decorator` (required
|
| 29 |
+
since the views are methods) resulting in the decorator not being properly
|
| 30 |
+
applied. This usage has been fixed and
|
| 31 |
+
:func:`~django.views.decorators.debug.sensitive_post_parameters` will now
|
| 32 |
+
throw an exception if it's improperly used.
|
| 33 |
+
|
| 34 |
+
Bugfixes
|
| 35 |
+
========
|
| 36 |
+
|
| 37 |
+
* Fixed a bug that prevented a ``QuerySet`` that uses
|
| 38 |
+
:meth:`~django.db.models.query.QuerySet.prefetch_related` from being pickled
|
| 39 |
+
and unpickled more than once (the second pickling attempt raised an
|
| 40 |
+
exception) (#21102).
|
testbed/django__django/docs/releases/1.5.5.txt
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.5.5 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*October 23, 2013*
|
| 6 |
+
|
| 7 |
+
Django 1.5.5 fixes a couple security-related bugs and several other bugs in the
|
| 8 |
+
1.5 series.
|
| 9 |
+
|
| 10 |
+
Readdressed denial-of-service via password hashers
|
| 11 |
+
==================================================
|
| 12 |
+
|
| 13 |
+
Django 1.5.4 imposes a 4096-byte limit on passwords in order to mitigate a
|
| 14 |
+
denial-of-service attack through submission of bogus but extremely large
|
| 15 |
+
passwords. In Django 1.5.5, we've reverted this change and instead improved
|
| 16 |
+
the speed of our PBKDF2 algorithm by not rehashing the key on every iteration.
|
| 17 |
+
|
| 18 |
+
Properly rotate CSRF token on login
|
| 19 |
+
===================================
|
| 20 |
+
|
| 21 |
+
This behavior introduced as a security hardening measure in Django 1.5.2 did
|
| 22 |
+
not work properly and is now fixed.
|
| 23 |
+
|
| 24 |
+
Bugfixes
|
| 25 |
+
========
|
| 26 |
+
|
| 27 |
+
* Fixed a data corruption bug with ``datetime_safe.datetime.combine`` (#21256).
|
| 28 |
+
* Fixed a Python 3 incompatibility in ``django.utils.text.unescape_entities()``
|
| 29 |
+
(#21185).
|
| 30 |
+
* Fixed a couple data corruption issues with ``QuerySet`` edge cases under
|
| 31 |
+
Oracle and MySQL (#21203, #21126).
|
| 32 |
+
* Fixed crashes when using combinations of ``annotate()``,
|
| 33 |
+
``select_related()``, and ``only()`` (#16436).
|
| 34 |
+
|
| 35 |
+
Backwards incompatible changes
|
| 36 |
+
==============================
|
| 37 |
+
|
| 38 |
+
* The undocumented ``django.core.servers.basehttp.WSGIServerException`` has
|
| 39 |
+
been removed. Use ``socket.error`` provided by the standard library instead.
|
testbed/django__django/docs/releases/1.5.6.txt
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.5.6 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*April 21, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.5.6 fixes several bugs in 1.5.5, including three security
|
| 8 |
+
issues.
|
| 9 |
+
|
| 10 |
+
Unexpected code execution using ``reverse()``
|
| 11 |
+
=============================================
|
| 12 |
+
|
| 13 |
+
Django's URL handling is based on a mapping of regex patterns
|
| 14 |
+
(representing the URLs) to callable views, and Django's own processing
|
| 15 |
+
consists of matching a requested URL against those patterns to
|
| 16 |
+
determine the appropriate view to invoke.
|
| 17 |
+
|
| 18 |
+
Django also provides a convenience function -- ``reverse()`` -- which performs
|
| 19 |
+
this process in the opposite direction. The ``reverse()`` function takes
|
| 20 |
+
information about a view and returns a URL which would invoke that view. Use
|
| 21 |
+
of ``reverse()`` is encouraged for application developers, as the output of
|
| 22 |
+
``reverse()`` is always based on the current URL patterns, meaning developers
|
| 23 |
+
do not need to change other code when making changes to URLs.
|
| 24 |
+
|
| 25 |
+
One argument signature for ``reverse()`` is to pass a dotted Python
|
| 26 |
+
path to the desired view. In this situation, Django will import the
|
| 27 |
+
module indicated by that dotted path as part of generating the
|
| 28 |
+
resulting URL. If such a module has import-time side effects, those
|
| 29 |
+
side effects will occur.
|
| 30 |
+
|
| 31 |
+
Thus it is possible for an attacker to cause unexpected code
|
| 32 |
+
execution, given the following conditions:
|
| 33 |
+
|
| 34 |
+
1. One or more views are present which construct a URL based on user
|
| 35 |
+
input (commonly, a "next" parameter in a querystring indicating
|
| 36 |
+
where to redirect upon successful completion of an action).
|
| 37 |
+
|
| 38 |
+
2. One or more modules are known to an attacker to exist on the
|
| 39 |
+
server's Python import path, which perform code execution with side
|
| 40 |
+
effects on importing.
|
| 41 |
+
|
| 42 |
+
To remedy this, ``reverse()`` will now only accept and import dotted
|
| 43 |
+
paths based on the view-containing modules listed in the project's :doc:`URL
|
| 44 |
+
pattern configuration </topics/http/urls>`, so as to ensure that only modules
|
| 45 |
+
the developer intended to be imported in this fashion can or will be imported.
|
| 46 |
+
|
| 47 |
+
Caching of anonymous pages could reveal CSRF token
|
| 48 |
+
==================================================
|
| 49 |
+
|
| 50 |
+
Django includes both a :doc:`caching framework </topics/cache>` and a system
|
| 51 |
+
for :doc:`preventing cross-site request forgery (CSRF) attacks
|
| 52 |
+
</ref/csrf/>`. The CSRF-protection system is based on a random nonce
|
| 53 |
+
sent to the client in a cookie which must be sent by the client on future
|
| 54 |
+
requests and, in forms, a hidden value which must be submitted back with the
|
| 55 |
+
form.
|
| 56 |
+
|
| 57 |
+
The caching framework includes an option to cache responses to
|
| 58 |
+
anonymous (i.e., unauthenticated) clients.
|
| 59 |
+
|
| 60 |
+
When the first anonymous request to a given page is by a client which
|
| 61 |
+
did not have a CSRF cookie, the cache framework will also cache the
|
| 62 |
+
CSRF cookie and serve the same nonce to other anonymous clients who
|
| 63 |
+
do not have a CSRF cookie. This can allow an attacker to obtain a
|
| 64 |
+
valid CSRF cookie value and perform attacks which bypass the check for
|
| 65 |
+
the cookie.
|
| 66 |
+
|
| 67 |
+
To remedy this, the caching framework will no longer cache such
|
| 68 |
+
responses. The heuristic for this will be:
|
| 69 |
+
|
| 70 |
+
1. If the incoming request did not submit any cookies, and
|
| 71 |
+
|
| 72 |
+
2. If the response did send one or more cookies, and
|
| 73 |
+
|
| 74 |
+
3. If the ``Vary: Cookie`` header is set on the response, then the
|
| 75 |
+
response will not be cached.
|
| 76 |
+
|
| 77 |
+
MySQL typecasting
|
| 78 |
+
=================
|
| 79 |
+
|
| 80 |
+
The MySQL database is known to "typecast" on certain queries; for
|
| 81 |
+
example, when querying a table which contains string values, but using
|
| 82 |
+
a query which filters based on an integer value, MySQL will first
|
| 83 |
+
silently coerce the strings to integers and return a result based on that.
|
| 84 |
+
|
| 85 |
+
If a query is performed without first converting values to the
|
| 86 |
+
appropriate type, this can produce unexpected results, similar to what
|
| 87 |
+
would occur if the query itself had been manipulated.
|
| 88 |
+
|
| 89 |
+
Django's model field classes are aware of their own types and most
|
| 90 |
+
such classes perform explicit conversion of query arguments to the
|
| 91 |
+
correct database-level type before querying. However, three model
|
| 92 |
+
field classes did not correctly convert their arguments:
|
| 93 |
+
|
| 94 |
+
* :class:`~django.db.models.FilePathField`
|
| 95 |
+
* :class:`~django.db.models.GenericIPAddressField`
|
| 96 |
+
* ``IPAddressField``
|
| 97 |
+
|
| 98 |
+
These three fields have been updated to convert their arguments to the
|
| 99 |
+
correct types before querying.
|
| 100 |
+
|
| 101 |
+
Additionally, developers of custom model fields are now warned via
|
| 102 |
+
documentation to ensure their custom field classes will perform
|
| 103 |
+
appropriate type conversions, and users of the :meth:`raw()
|
| 104 |
+
<django.db.models.query.QuerySet.raw>` and :meth:`extra()
|
| 105 |
+
<django.db.models.query.QuerySet.extra>` query methods -- which allow the
|
| 106 |
+
developer to supply raw SQL or SQL fragments -- will be advised to ensure they
|
| 107 |
+
perform appropriate manual type conversions prior to executing queries.
|
| 108 |
+
|
| 109 |
+
Bugfixes
|
| 110 |
+
========
|
| 111 |
+
|
| 112 |
+
* Fixed :class:`~django.contrib.auth.backends.ModelBackend` raising
|
| 113 |
+
``UnboundLocalError`` if :func:`~django.contrib.auth.get_user_model`
|
| 114 |
+
raised an error (#21439).
|
| 115 |
+
|
| 116 |
+
Additionally, Django's vendored version of six, ``django.utils.six``,
|
| 117 |
+
has been upgraded to the latest release (1.6.1).
|
testbed/django__django/docs/releases/1.6.10.txt
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.6.10 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*January 13, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.6.10 fixes several security issues in 1.6.9.
|
| 8 |
+
|
| 9 |
+
WSGI header spoofing via underscore/dash conflation
|
| 10 |
+
===================================================
|
| 11 |
+
|
| 12 |
+
When HTTP headers are placed into the WSGI environ, they are normalized by
|
| 13 |
+
converting to uppercase, converting all dashes to underscores, and prepending
|
| 14 |
+
``HTTP_``. For instance, a header ``X-Auth-User`` would become
|
| 15 |
+
``HTTP_X_AUTH_USER`` in the WSGI environ (and thus also in Django's
|
| 16 |
+
``request.META`` dictionary).
|
| 17 |
+
|
| 18 |
+
Unfortunately, this means that the WSGI environ cannot distinguish between
|
| 19 |
+
headers containing dashes and headers containing underscores: ``X-Auth-User``
|
| 20 |
+
and ``X-Auth_User`` both become ``HTTP_X_AUTH_USER``. This means that if a
|
| 21 |
+
header is used in a security-sensitive way (for instance, passing
|
| 22 |
+
authentication information along from a front-end proxy), even if the proxy
|
| 23 |
+
carefully strips any incoming value for ``X-Auth-User``, an attacker may be
|
| 24 |
+
able to provide an ``X-Auth_User`` header (with underscore) and bypass this
|
| 25 |
+
protection.
|
| 26 |
+
|
| 27 |
+
In order to prevent such attacks, both Nginx and Apache 2.4+ strip all headers
|
| 28 |
+
containing underscores from incoming requests by default. Django's built-in
|
| 29 |
+
development server now does the same. Django's development server is not
|
| 30 |
+
recommended for production use, but matching the behavior of common production
|
| 31 |
+
servers reduces the surface area for behavior changes during deployment.
|
| 32 |
+
|
| 33 |
+
Mitigated possible XSS attack via user-supplied redirect URLs
|
| 34 |
+
=============================================================
|
| 35 |
+
|
| 36 |
+
Django relies on user input in some cases (e.g.
|
| 37 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 38 |
+
to redirect the user to an "on success" URL. The security checks for these
|
| 39 |
+
redirects (namely ``django.utils.http.is_safe_url()``) didn't strip leading
|
| 40 |
+
whitespace on the tested URL and as such considered URLs like
|
| 41 |
+
``\njavascript:...`` safe. If a developer relied on ``is_safe_url()`` to
|
| 42 |
+
provide safe redirect targets and put such a URL into a link, they could suffer
|
| 43 |
+
from a XSS attack. This bug doesn't affect Django currently, since we only put
|
| 44 |
+
this URL into the ``Location`` response header and browsers seem to ignore
|
| 45 |
+
JavaScript there.
|
| 46 |
+
|
| 47 |
+
Denial-of-service attack against ``django.views.static.serve``
|
| 48 |
+
==============================================================
|
| 49 |
+
|
| 50 |
+
In older versions of Django, the :func:`django.views.static.serve` view read
|
| 51 |
+
the files it served one line at a time. Therefore, a big file with no newlines
|
| 52 |
+
would result in memory usage equal to the size of that file. An attacker could
|
| 53 |
+
exploit this and launch a denial-of-service attack by simultaneously requesting
|
| 54 |
+
many large files. This view now reads the file in chunks to prevent large
|
| 55 |
+
memory usage.
|
| 56 |
+
|
| 57 |
+
Note, however, that this view has always carried a warning that it is not
|
| 58 |
+
hardened for production use and should be used only as a development aid. Now
|
| 59 |
+
may be a good time to audit your project and serve your files in production
|
| 60 |
+
using a real front-end web server if you are not doing so.
|
| 61 |
+
|
| 62 |
+
Database denial-of-service with ``ModelMultipleChoiceField``
|
| 63 |
+
============================================================
|
| 64 |
+
|
| 65 |
+
Given a form that uses ``ModelMultipleChoiceField`` and
|
| 66 |
+
``show_hidden_initial=True`` (not a documented API), it was possible for a user
|
| 67 |
+
to cause an unreasonable number of SQL queries by submitting duplicate values
|
| 68 |
+
for the field's data. The validation logic in ``ModelMultipleChoiceField`` now
|
| 69 |
+
deduplicates submitted values to address this issue.
|
testbed/django__django/docs/releases/1.6.11.txt
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.6.11 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*March 18, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.6.11 fixes two security issues in 1.6.10.
|
| 8 |
+
|
| 9 |
+
Denial-of-service possibility with ``strip_tags()``
|
| 10 |
+
===================================================
|
| 11 |
+
|
| 12 |
+
Last year :func:`~django.utils.html.strip_tags` was changed to work
|
| 13 |
+
iteratively. The problem is that the size of the input it's processing can
|
| 14 |
+
increase on each iteration which results in an infinite loop in
|
| 15 |
+
``strip_tags()``. This issue only affects versions of Python that haven't
|
| 16 |
+
received :bpo:`a bugfix in HTMLParser <20288>`; namely Python < 2.7.7 and
|
| 17 |
+
3.3.5. Some operating system vendors have also backported the fix for the
|
| 18 |
+
Python bug into their packages of earlier versions.
|
| 19 |
+
|
| 20 |
+
To remedy this issue, ``strip_tags()`` will now return the original input if
|
| 21 |
+
it detects the length of the string it's processing increases. Remember that
|
| 22 |
+
absolutely NO guarantee is provided about the results of ``strip_tags()`` being
|
| 23 |
+
HTML safe. So NEVER mark safe the result of a ``strip_tags()`` call without
|
| 24 |
+
escaping it first, for example with :func:`~django.utils.html.escape`.
|
| 25 |
+
|
| 26 |
+
Mitigated possible XSS attack via user-supplied redirect URLs
|
| 27 |
+
=============================================================
|
| 28 |
+
|
| 29 |
+
Django relies on user input in some cases (e.g.
|
| 30 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 31 |
+
to redirect the user to an "on success" URL. The security checks for these
|
| 32 |
+
redirects (namely ``django.utils.http.is_safe_url()``) accepted URLs with
|
| 33 |
+
leading control characters and so considered URLs like ``\x08javascript:...``
|
| 34 |
+
safe. This issue doesn't affect Django currently, since we only put this URL
|
| 35 |
+
into the ``Location`` response header and browsers seem to ignore JavaScript
|
| 36 |
+
there. Browsers we tested also treat URLs prefixed with control characters such
|
| 37 |
+
as ``%08//example.com`` as relative paths so redirection to an unsafe target
|
| 38 |
+
isn't a problem either.
|
| 39 |
+
|
| 40 |
+
However, if a developer relies on ``is_safe_url()`` to
|
| 41 |
+
provide safe redirect targets and puts such a URL into a link, they could
|
| 42 |
+
suffer from an XSS attack as some browsers such as Google Chrome ignore control
|
| 43 |
+
characters at the start of a URL in an anchor ``href``.
|
testbed/django__django/docs/releases/1.6.2.txt
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.6.2 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*February 6, 2014*
|
| 6 |
+
|
| 7 |
+
This is Django 1.6.2, a bugfix release for Django 1.6. Django 1.6.2 fixes
|
| 8 |
+
several bugs in 1.6.1:
|
| 9 |
+
|
| 10 |
+
* Prevented the base geometry object of a prepared geometry to be garbage
|
| 11 |
+
collected, which could lead to crash Django
|
| 12 |
+
(:ticket:`21662`).
|
| 13 |
+
|
| 14 |
+
* Fixed a crash when executing the :djadmin:`changepassword` command when the
|
| 15 |
+
user object representation contained non-ASCII characters
|
| 16 |
+
(:ticket:`21627`).
|
| 17 |
+
|
| 18 |
+
* The :djadmin:`collectstatic` command will raise an error rather than
|
| 19 |
+
default to using the current working directory if :setting:`STATIC_ROOT` is
|
| 20 |
+
not set. Combined with the ``--clear`` option, the previous behavior could
|
| 21 |
+
wipe anything below the current working directory
|
| 22 |
+
(:ticket:`21581`).
|
| 23 |
+
|
| 24 |
+
* Fixed mail encoding on Python 3.3.3+
|
| 25 |
+
(:ticket:`21093`).
|
| 26 |
+
|
| 27 |
+
* Fixed an issue where when
|
| 28 |
+
``settings.DATABASES['default']['AUTOCOMMIT'] = False``, the connection
|
| 29 |
+
wasn't in autocommit mode but Django pretended it was.
|
| 30 |
+
|
| 31 |
+
* Fixed a regression in multiple-table inheritance ``exclude()`` queries
|
| 32 |
+
(:ticket:`21787`).
|
| 33 |
+
|
| 34 |
+
* Added missing items to ``django.utils.timezone.__all__``
|
| 35 |
+
(:ticket:`21880`).
|
| 36 |
+
|
| 37 |
+
* Fixed a field misalignment issue with ``select_related()`` and model
|
| 38 |
+
inheritance
|
| 39 |
+
(:ticket:`21413`).
|
| 40 |
+
|
| 41 |
+
* Fixed join promotion for negated ``AND`` conditions
|
| 42 |
+
(:ticket:`21748`).
|
| 43 |
+
|
| 44 |
+
* Oracle database introspection now works with boolean and float fields
|
| 45 |
+
(:ticket:`19884`).
|
| 46 |
+
|
| 47 |
+
* Fixed an issue where lazy objects weren't actually marked as safe when passed
|
| 48 |
+
through :func:`~django.utils.safestring.mark_safe` and could end up being
|
| 49 |
+
double-escaped (:ticket:`21882`).
|
| 50 |
+
|
| 51 |
+
Additionally, Django's vendored version of six, ``django.utils.six`` has been
|
| 52 |
+
upgraded to the latest release (1.5.2).
|
testbed/django__django/docs/releases/1.6.7.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.6.7 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*September 2, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.6.7 fixes several bugs in 1.6.6, including a regression related to
|
| 8 |
+
a security fix in that release.
|
| 9 |
+
|
| 10 |
+
Bugfixes
|
| 11 |
+
========
|
| 12 |
+
|
| 13 |
+
* Allowed inherited and m2m fields to be referenced in the admin
|
| 14 |
+
(:ticket:`23329`).
|
| 15 |
+
* Fixed a crash when using ``QuerySet.defer()`` with ``select_related()``
|
| 16 |
+
(:ticket:`23370`).
|
testbed/django__django/docs/releases/1.6.8.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.6.8 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*October 22, 2014*
|
| 6 |
+
|
| 7 |
+
Django 1.6.8 fixes a couple regressions in the 1.6.6 security release.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Allowed related many-to-many fields to be referenced in the admin
|
| 13 |
+
(:ticket:`23604`).
|
| 14 |
+
|
| 15 |
+
* Allowed inline and hidden references to admin fields (:ticket:`23431`).
|
testbed/django__django/docs/releases/1.6.9.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.6.9 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 2, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.6.9 fixes a regression in the 1.6.6 security release.
|
| 8 |
+
|
| 9 |
+
Additionally, Django's vendored version of six, ``django.utils.six``, has
|
| 10 |
+
been upgraded to the latest release (1.9.0).
|
| 11 |
+
|
| 12 |
+
Bugfixes
|
| 13 |
+
========
|
| 14 |
+
|
| 15 |
+
* Fixed a regression with dynamically generated inlines and allowed field
|
| 16 |
+
references in the admin (:ticket:`23754`).
|
testbed/django__django/docs/releases/1.7.10.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.7.10 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*August 18, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.10 fixes a security issue in 1.7.9.
|
| 8 |
+
|
| 9 |
+
Denial-of-service possibility in ``logout()`` view by filling session store
|
| 10 |
+
===========================================================================
|
| 11 |
+
|
| 12 |
+
Previously, a session could be created when anonymously accessing the
|
| 13 |
+
``django.contrib.auth.views.logout()`` view (provided it wasn't decorated
|
| 14 |
+
with :func:`~django.contrib.auth.decorators.login_required` as done in the
|
| 15 |
+
admin). This could allow an attacker to easily create many new session records
|
| 16 |
+
by sending repeated requests, potentially filling up the session store or
|
| 17 |
+
causing other users' session records to be evicted.
|
| 18 |
+
|
| 19 |
+
The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
|
| 20 |
+
modified to no longer create empty session records, including when
|
| 21 |
+
:setting:`SESSION_SAVE_EVERY_REQUEST` is active.
|
| 22 |
+
|
| 23 |
+
Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and
|
| 24 |
+
``cache_db.SessionStore.flush()`` methods have been modified to avoid creating
|
| 25 |
+
a new empty session. Maintainers of third-party session backends should check
|
| 26 |
+
if the same vulnerability is present in their backend and correct it if so.
|
testbed/django__django/docs/releases/1.7.11.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.7.11 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*November 24, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.11 fixes a security issue and a data loss bug in 1.7.10.
|
| 8 |
+
|
| 9 |
+
Fixed settings leak possibility in ``date`` template filter
|
| 10 |
+
===========================================================
|
| 11 |
+
|
| 12 |
+
If an application allows users to specify an unvalidated format for dates and
|
| 13 |
+
passes this format to the :tfilter:`date` filter, e.g.
|
| 14 |
+
``{{ last_updated|date:user_date_format }}``, then a malicious user could
|
| 15 |
+
obtain any secret in the application's settings by specifying a settings key
|
| 16 |
+
instead of a date format. e.g. ``"SECRET_KEY"`` instead of ``"j/m/Y"``.
|
| 17 |
+
|
| 18 |
+
To remedy this, the underlying function used by the ``date`` template filter,
|
| 19 |
+
``django.utils.formats.get_format()``, now only allows accessing the date/time
|
| 20 |
+
formatting settings.
|
| 21 |
+
|
| 22 |
+
Bugfixes
|
| 23 |
+
========
|
| 24 |
+
|
| 25 |
+
* Fixed a data loss possibility with :class:`~django.db.models.Prefetch` if
|
| 26 |
+
``to_attr`` is set to a ``ManyToManyField`` (:ticket:`25693`).
|
testbed/django__django/docs/releases/1.7.3.txt
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.3 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 13, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.3 fixes several security issues and bugs in 1.7.2.
|
| 8 |
+
|
| 9 |
+
WSGI header spoofing via underscore/dash conflation
|
| 10 |
+
===================================================
|
| 11 |
+
|
| 12 |
+
When HTTP headers are placed into the WSGI environ, they are normalized by
|
| 13 |
+
converting to uppercase, converting all dashes to underscores, and prepending
|
| 14 |
+
``HTTP_``. For instance, a header ``X-Auth-User`` would become
|
| 15 |
+
``HTTP_X_AUTH_USER`` in the WSGI environ (and thus also in Django's
|
| 16 |
+
``request.META`` dictionary).
|
| 17 |
+
|
| 18 |
+
Unfortunately, this means that the WSGI environ cannot distinguish between
|
| 19 |
+
headers containing dashes and headers containing underscores: ``X-Auth-User``
|
| 20 |
+
and ``X-Auth_User`` both become ``HTTP_X_AUTH_USER``. This means that if a
|
| 21 |
+
header is used in a security-sensitive way (for instance, passing
|
| 22 |
+
authentication information along from a front-end proxy), even if the proxy
|
| 23 |
+
carefully strips any incoming value for ``X-Auth-User``, an attacker may be
|
| 24 |
+
able to provide an ``X-Auth_User`` header (with underscore) and bypass this
|
| 25 |
+
protection.
|
| 26 |
+
|
| 27 |
+
In order to prevent such attacks, both Nginx and Apache 2.4+ strip all headers
|
| 28 |
+
containing underscores from incoming requests by default. Django's built-in
|
| 29 |
+
development server now does the same. Django's development server is not
|
| 30 |
+
recommended for production use, but matching the behavior of common production
|
| 31 |
+
servers reduces the surface area for behavior changes during deployment.
|
| 32 |
+
|
| 33 |
+
Mitigated possible XSS attack via user-supplied redirect URLs
|
| 34 |
+
=============================================================
|
| 35 |
+
|
| 36 |
+
Django relies on user input in some cases (e.g.
|
| 37 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 38 |
+
to redirect the user to an "on success" URL. The security checks for these
|
| 39 |
+
redirects (namely ``django.utils.http.is_safe_url()``) didn't strip leading
|
| 40 |
+
whitespace on the tested URL and as such considered URLs like
|
| 41 |
+
``\njavascript:...`` safe. If a developer relied on ``is_safe_url()`` to
|
| 42 |
+
provide safe redirect targets and put such a URL into a link, they could suffer
|
| 43 |
+
from a XSS attack. This bug doesn't affect Django currently, since we only put
|
| 44 |
+
this URL into the ``Location`` response header and browsers seem to ignore
|
| 45 |
+
JavaScript there.
|
| 46 |
+
|
| 47 |
+
Denial-of-service attack against ``django.views.static.serve``
|
| 48 |
+
==============================================================
|
| 49 |
+
|
| 50 |
+
In older versions of Django, the :func:`django.views.static.serve` view read
|
| 51 |
+
the files it served one line at a time. Therefore, a big file with no newlines
|
| 52 |
+
would result in memory usage equal to the size of that file. An attacker could
|
| 53 |
+
exploit this and launch a denial-of-service attack by simultaneously requesting
|
| 54 |
+
many large files. This view now reads the file in chunks to prevent large
|
| 55 |
+
memory usage.
|
| 56 |
+
|
| 57 |
+
Note, however, that this view has always carried a warning that it is not
|
| 58 |
+
hardened for production use and should be used only as a development aid. Now
|
| 59 |
+
may be a good time to audit your project and serve your files in production
|
| 60 |
+
using a real front-end web server if you are not doing so.
|
| 61 |
+
|
| 62 |
+
Database denial-of-service with ``ModelMultipleChoiceField``
|
| 63 |
+
============================================================
|
| 64 |
+
|
| 65 |
+
Given a form that uses ``ModelMultipleChoiceField`` and
|
| 66 |
+
``show_hidden_initial=True`` (not a documented API), it was possible for a user
|
| 67 |
+
to cause an unreasonable number of SQL queries by submitting duplicate values
|
| 68 |
+
for the field's data. The validation logic in ``ModelMultipleChoiceField`` now
|
| 69 |
+
deduplicates submitted values to address this issue.
|
| 70 |
+
|
| 71 |
+
Bugfixes
|
| 72 |
+
========
|
| 73 |
+
|
| 74 |
+
* The default iteration count for the PBKDF2 password hasher has been
|
| 75 |
+
increased by 25%. This part of the normal major release process was
|
| 76 |
+
inadvertently omitted in 1.7. This backwards compatible change will not
|
| 77 |
+
affect users who have subclassed
|
| 78 |
+
``django.contrib.auth.hashers.PBKDF2PasswordHasher`` to change the
|
| 79 |
+
default value.
|
| 80 |
+
|
| 81 |
+
* Fixed a crash in the CSRF middleware when handling non-ASCII referer header
|
| 82 |
+
(:ticket:`23815`).
|
| 83 |
+
|
| 84 |
+
* Fixed a crash in the ``django.contrib.auth.redirect_to_login`` view when
|
| 85 |
+
passing a ``reverse_lazy()`` result on Python 3 (:ticket:`24097`).
|
| 86 |
+
|
| 87 |
+
* Added correct formats for Greek (``el``) (:ticket:`23967`).
|
| 88 |
+
|
| 89 |
+
* Fixed a migration crash when unapplying a migration where multiple operations
|
| 90 |
+
interact with the same model (:ticket:`24110`).
|
testbed/django__django/docs/releases/1.7.4.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.4 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 27, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.4 fixes several bugs in 1.7.3.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Fixed a migration crash when unapplying ``contrib.contenttypes``’s or
|
| 13 |
+
``contrib.auth``’s first migration (:ticket:`24075`).
|
| 14 |
+
|
| 15 |
+
* Made the migration's ``RenameModel`` operation rename ``ManyToManyField``
|
| 16 |
+
tables (:ticket:`24135`).
|
| 17 |
+
|
| 18 |
+
* Fixed a migration crash on MySQL when migrating from a ``OneToOneField`` to a
|
| 19 |
+
``ForeignKey`` (:ticket:`24163`).
|
| 20 |
+
|
| 21 |
+
* Prevented the ``static.serve`` view from producing ``ResourceWarning``\s in
|
| 22 |
+
certain circumstances (security fix regression, :ticket:`24193`).
|
| 23 |
+
|
| 24 |
+
* Fixed schema check for ManyToManyField to look for internal type instead
|
| 25 |
+
of checking class instance, so you can write custom m2m-like fields with the
|
| 26 |
+
same behavior. (:ticket:`24104`).
|
testbed/django__django/docs/releases/1.7.5.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.5 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*February 25, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.5 fixes several bugs in 1.7.4.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Reverted a fix that prevented a migration crash when unapplying
|
| 13 |
+
``contrib.contenttypes``’s or ``contrib.auth``’s first migration
|
| 14 |
+
(:ticket:`24075`) due to severe impact on the test performance
|
| 15 |
+
(:ticket:`24251`) and problems in multi-database setups (:ticket:`24298`).
|
| 16 |
+
|
| 17 |
+
* Fixed a regression that prevented custom fields inheriting from
|
| 18 |
+
``ManyToManyField`` from being recognized in migrations (:ticket:`24236`).
|
| 19 |
+
|
| 20 |
+
* Fixed crash in ``contrib.sites`` migrations when a default database isn't
|
| 21 |
+
used (:ticket:`24332`).
|
| 22 |
+
|
| 23 |
+
* Added the ability to set the isolation level on PostgreSQL with psycopg2 ≥
|
| 24 |
+
2.4.2 (:ticket:`24318`). It was advertised as a new feature in Django 1.6
|
| 25 |
+
but it didn't work in practice.
|
| 26 |
+
|
| 27 |
+
* Formats for the Azerbaijani locale (``az``) have been added.
|
testbed/django__django/docs/releases/1.7.6.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.6 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*March 9, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.6 fixes a security issue and several bugs in 1.7.5.
|
| 8 |
+
|
| 9 |
+
Mitigated an XSS attack via properties in ``ModelAdmin.readonly_fields``
|
| 10 |
+
========================================================================
|
| 11 |
+
|
| 12 |
+
The :attr:`ModelAdmin.readonly_fields
|
| 13 |
+
<django.contrib.admin.ModelAdmin.readonly_fields>` attribute in the Django
|
| 14 |
+
admin allows displaying model fields and model attributes. While the former
|
| 15 |
+
were correctly escaped, the latter were not. Thus untrusted content could be
|
| 16 |
+
injected into the admin, presenting an exploitation vector for XSS attacks.
|
| 17 |
+
|
| 18 |
+
In this vulnerability, every model attribute used in ``readonly_fields`` that
|
| 19 |
+
is not an actual model field (e.g. a :class:`property`) will **fail to be
|
| 20 |
+
escaped** even if that attribute is not marked as safe. In this release,
|
| 21 |
+
autoescaping is now correctly applied.
|
| 22 |
+
|
| 23 |
+
Bugfixes
|
| 24 |
+
========
|
| 25 |
+
|
| 26 |
+
* Fixed crash when coercing ``ManyRelatedManager`` to a string
|
| 27 |
+
(:ticket:`24352`).
|
| 28 |
+
|
| 29 |
+
* Fixed a bug that prevented migrations from adding a foreign key constraint
|
| 30 |
+
when converting an existing field to a foreign key (:ticket:`24447`).
|
testbed/django__django/docs/releases/1.7.7.txt
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.7 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*March 18, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.7 fixes several bugs and security issues in 1.7.6.
|
| 8 |
+
|
| 9 |
+
Denial-of-service possibility with ``strip_tags()``
|
| 10 |
+
===================================================
|
| 11 |
+
|
| 12 |
+
Last year :func:`~django.utils.html.strip_tags` was changed to work
|
| 13 |
+
iteratively. The problem is that the size of the input it's processing can
|
| 14 |
+
increase on each iteration which results in an infinite loop in
|
| 15 |
+
``strip_tags()``. This issue only affects versions of Python that haven't
|
| 16 |
+
received :bpo:`a bugfix in HTMLParser <20288>`; namely Python < 2.7.7 and
|
| 17 |
+
3.3.5. Some operating system vendors have also backported the fix for the
|
| 18 |
+
Python bug into their packages of earlier versions.
|
| 19 |
+
|
| 20 |
+
To remedy this issue, ``strip_tags()`` will now return the original input if
|
| 21 |
+
it detects the length of the string it's processing increases. Remember that
|
| 22 |
+
absolutely NO guarantee is provided about the results of ``strip_tags()`` being
|
| 23 |
+
HTML safe. So NEVER mark safe the result of a ``strip_tags()`` call without
|
| 24 |
+
escaping it first, for example with :func:`~django.utils.html.escape`.
|
| 25 |
+
|
| 26 |
+
Mitigated possible XSS attack via user-supplied redirect URLs
|
| 27 |
+
=============================================================
|
| 28 |
+
|
| 29 |
+
Django relies on user input in some cases (e.g.
|
| 30 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 31 |
+
to redirect the user to an "on success" URL. The security checks for these
|
| 32 |
+
redirects (namely ``django.utils.http.is_safe_url()``) accepted URLs with
|
| 33 |
+
leading control characters and so considered URLs like ``\x08javascript:...``
|
| 34 |
+
safe. This issue doesn't affect Django currently, since we only put this URL
|
| 35 |
+
into the ``Location`` response header and browsers seem to ignore JavaScript
|
| 36 |
+
there. Browsers we tested also treat URLs prefixed with control characters such
|
| 37 |
+
as ``%08//example.com`` as relative paths so redirection to an unsafe target
|
| 38 |
+
isn't a problem either.
|
| 39 |
+
|
| 40 |
+
However, if a developer relies on ``is_safe_url()`` to
|
| 41 |
+
provide safe redirect targets and puts such a URL into a link, they could
|
| 42 |
+
suffer from an XSS attack as some browsers such as Google Chrome ignore control
|
| 43 |
+
characters at the start of a URL in an anchor ``href``.
|
| 44 |
+
|
| 45 |
+
Bugfixes
|
| 46 |
+
========
|
| 47 |
+
|
| 48 |
+
* Fixed renaming of classes in migrations where renaming a subclass would
|
| 49 |
+
cause incorrect state to be recorded for objects that referenced the
|
| 50 |
+
superclass (:ticket:`24354`).
|
| 51 |
+
|
| 52 |
+
* Stopped writing migration files in dry run mode when merging migration
|
| 53 |
+
conflicts. When ``makemigrations --merge`` is called with ``verbosity=3`` the
|
| 54 |
+
migration file is written to ``stdout`` (:ticket:`24427`).
|
testbed/django__django/docs/releases/1.7.8.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.7.8 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*May 1, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.7.8 fixes:
|
| 8 |
+
|
| 9 |
+
* Database introspection with SQLite 3.8.9 (released April 8, 2015)
|
| 10 |
+
(:ticket:`24637`).
|
| 11 |
+
|
| 12 |
+
* A database table name quoting regression in 1.7.2 (:ticket:`24605`).
|
| 13 |
+
|
| 14 |
+
* The loss of ``null``/``not null`` column properties during field alteration
|
| 15 |
+
of MySQL databases (:ticket:`24595`).
|
testbed/django__django/docs/releases/1.8.10.txt
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.10 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*March 1, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.10 fixes two security issues and several bugs in 1.8.9.
|
| 8 |
+
|
| 9 |
+
CVE-2016-2512: Malicious redirect and possible XSS attack via user-supplied redirect URLs containing basic auth
|
| 10 |
+
===============================================================================================================
|
| 11 |
+
|
| 12 |
+
Django relies on user input in some cases (e.g.
|
| 13 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 14 |
+
to redirect the user to an "on success" URL. The security check for these
|
| 15 |
+
redirects (namely ``django.utils.http.is_safe_url()``) considered some URLs
|
| 16 |
+
with basic authentication credentials "safe" when they shouldn't be.
|
| 17 |
+
|
| 18 |
+
For example, a URL like ``http://mysite.example.com\@attacker.com`` would be
|
| 19 |
+
considered safe if the request's host is ``http://mysite.example.com``, but
|
| 20 |
+
redirecting to this URL sends the user to ``attacker.com``.
|
| 21 |
+
|
| 22 |
+
Also, if a developer relies on ``is_safe_url()`` to provide safe redirect
|
| 23 |
+
targets and puts such a URL into a link, they could suffer from an XSS attack.
|
| 24 |
+
|
| 25 |
+
CVE-2016-2513: User enumeration through timing difference on password hasher work factor upgrade
|
| 26 |
+
================================================================================================
|
| 27 |
+
|
| 28 |
+
In each major version of Django since 1.6, the default number of iterations for
|
| 29 |
+
the ``PBKDF2PasswordHasher`` and its subclasses has increased. This improves
|
| 30 |
+
the security of the password as the speed of hardware increases, however, it
|
| 31 |
+
also creates a timing difference between a login request for a user with a
|
| 32 |
+
password encoded in an older number of iterations and login request for a
|
| 33 |
+
nonexistent user (which runs the default hasher's default number of iterations
|
| 34 |
+
since Django 1.6).
|
| 35 |
+
|
| 36 |
+
This only affects users who haven't logged in since the iterations were
|
| 37 |
+
increased. The first time a user logs in after an iterations increase, their
|
| 38 |
+
password is updated with the new iterations and there is no longer a timing
|
| 39 |
+
difference.
|
| 40 |
+
|
| 41 |
+
The new ``BasePasswordHasher.harden_runtime()`` method allows hashers to bridge
|
| 42 |
+
the runtime gap between the work factor (e.g. iterations) supplied in existing
|
| 43 |
+
encoded passwords and the default work factor of the hasher. This method
|
| 44 |
+
is implemented for ``PBKDF2PasswordHasher`` and ``BCryptPasswordHasher``.
|
| 45 |
+
The number of rounds for the latter hasher hasn't changed since Django 1.4, but
|
| 46 |
+
some projects may subclass it and increase the work factor as needed.
|
| 47 |
+
|
| 48 |
+
A warning will be emitted for any :ref:`third-party password hashers that don't
|
| 49 |
+
implement <write-your-own-password-hasher>` a ``harden_runtime()`` method.
|
| 50 |
+
|
| 51 |
+
If you have different password hashes in your database (such as SHA1 hashes
|
| 52 |
+
from users who haven't logged in since the default hasher switched to PBKDF2
|
| 53 |
+
in Django 1.4), the timing difference on a login request for these users may be
|
| 54 |
+
even greater and this fix doesn't remedy that difference (or any difference
|
| 55 |
+
when changing hashers). You may be able to :ref:`upgrade those hashes
|
| 56 |
+
<wrapping-password-hashers>` to prevent a timing attack for that case.
|
| 57 |
+
|
| 58 |
+
Bugfixes
|
| 59 |
+
========
|
| 60 |
+
|
| 61 |
+
* Fixed a crash on PostgreSQL that prevented using ``TIME_ZONE=None`` and
|
| 62 |
+
``USE_TZ=False`` (:ticket:`26177`).
|
| 63 |
+
|
| 64 |
+
* Added system checks for query name clashes of hidden relationships
|
| 65 |
+
(:ticket:`26162`).
|
| 66 |
+
|
| 67 |
+
* Made ``forms.FileField`` and ``utils.translation.lazy_number()`` picklable
|
| 68 |
+
(:ticket:`26212`).
|
| 69 |
+
|
| 70 |
+
* Fixed :class:`~django.contrib.postgres.fields.RangeField` and
|
| 71 |
+
:class:`~django.contrib.postgres.fields.ArrayField` serialization with
|
| 72 |
+
``None`` values (:ticket:`26215`).
|
| 73 |
+
|
| 74 |
+
* Reallowed dashes in top-level domain names of URLs checked by
|
| 75 |
+
``URLValidator`` to fix a regression in Django 1.8 (:ticket:`26204`).
|
| 76 |
+
|
| 77 |
+
* Fixed ``BoundField`` to reallow slices of subwidgets (:ticket:`26267`).
|
| 78 |
+
|
| 79 |
+
* Prevented ``ContentTypeManager`` instances from sharing their cache
|
| 80 |
+
(:ticket:`26286`).
|
testbed/django__django/docs/releases/1.8.12.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.12 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*April 1, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.12 fixes several bugs in 1.8.11.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Made ``MultiPartParser`` ignore filenames that normalize to an empty string
|
| 13 |
+
to fix crash in ``MemoryFileUploadHandler`` on specially crafted user input
|
| 14 |
+
(:ticket:`26325`).
|
| 15 |
+
|
| 16 |
+
* Fixed data loss on SQLite where ``DurationField`` values with fractional
|
| 17 |
+
seconds could be saved as ``None`` (:ticket:`26324`).
|
| 18 |
+
|
| 19 |
+
* Restored the functionality of the admin's ``raw_id_fields`` in
|
| 20 |
+
``list_editable`` (:ticket:`26387`).
|
testbed/django__django/docs/releases/1.8.13.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.13 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*May 2, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.13 fixes several bugs in 1.8.12.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Fixed ``TimeField`` microseconds round-tripping on MySQL and SQLite
|
| 13 |
+
(:ticket:`26498`).
|
| 14 |
+
|
| 15 |
+
* Restored conversion of an empty string to null when saving values of
|
| 16 |
+
``GenericIPAddressField`` on SQLite and MySQL (:ticket:`26557`).
|
testbed/django__django/docs/releases/1.8.14.txt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.14 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*July 18, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.14 fixes a security issue and a bug in 1.8.13.
|
| 8 |
+
|
| 9 |
+
XSS in admin's add/change related popup
|
| 10 |
+
=======================================
|
| 11 |
+
|
| 12 |
+
Unsafe usage of JavaScript's ``Element.innerHTML`` could result in XSS in the
|
| 13 |
+
admin's add/change related popup. ``Element.textContent`` is now used to
|
| 14 |
+
prevent execution of the data.
|
| 15 |
+
|
| 16 |
+
The debug view also used ``innerHTML``. Although a security issue wasn't
|
| 17 |
+
identified there, out of an abundance of caution it's also updated to use
|
| 18 |
+
``textContent``.
|
| 19 |
+
|
| 20 |
+
Bugfixes
|
| 21 |
+
========
|
| 22 |
+
|
| 23 |
+
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
|
| 24 |
+
``TextField`` respectively when using ``AddField`` on PostgreSQL
|
| 25 |
+
(:ticket:`26889`).
|
testbed/django__django/docs/releases/1.8.15.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.15 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*September 26, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.15 fixes a security issue in 1.8.14.
|
| 8 |
+
|
| 9 |
+
CSRF protection bypass on a site with Google Analytics
|
| 10 |
+
======================================================
|
| 11 |
+
|
| 12 |
+
An interaction between Google Analytics and Django's cookie parsing could allow
|
| 13 |
+
an attacker to set arbitrary cookies leading to a bypass of CSRF protection.
|
| 14 |
+
|
| 15 |
+
The parser for ``request.COOKIES`` is simplified to better match the behavior
|
| 16 |
+
of browsers and to mitigate this attack. ``request.COOKIES`` may now contain
|
| 17 |
+
cookies that are invalid according to :rfc:`6265` but are possible to set via
|
| 18 |
+
``document.cookie``.
|
testbed/django__django/docs/releases/1.8.16.txt
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.16 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*November 1, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.16 fixes two security issues in 1.8.15.
|
| 8 |
+
|
| 9 |
+
User with hardcoded password created when running tests on Oracle
|
| 10 |
+
=================================================================
|
| 11 |
+
|
| 12 |
+
When running tests with an Oracle database, Django creates a temporary database
|
| 13 |
+
user. In older versions, if a password isn't manually specified in the database
|
| 14 |
+
settings ``TEST`` dictionary, a hardcoded password is used. This could allow
|
| 15 |
+
an attacker with network access to the database server to connect.
|
| 16 |
+
|
| 17 |
+
This user is usually dropped after the test suite completes, but not when using
|
| 18 |
+
the ``manage.py test --keepdb`` option or if the user has an active session
|
| 19 |
+
(such as an attacker's connection).
|
| 20 |
+
|
| 21 |
+
A randomly generated password is now used for each test run.
|
| 22 |
+
|
| 23 |
+
DNS rebinding vulnerability when ``DEBUG=True``
|
| 24 |
+
===============================================
|
| 25 |
+
|
| 26 |
+
Older versions of Django don't validate the ``Host`` header against
|
| 27 |
+
``settings.ALLOWED_HOSTS`` when ``settings.DEBUG=True``. This makes them
|
| 28 |
+
vulnerable to a `DNS rebinding attack
|
| 29 |
+
<https://benmmurphy.github.io/blog/2016/07/11/rails-webconsole-dns-rebinding/>`_.
|
| 30 |
+
|
| 31 |
+
While Django doesn't ship a module that allows remote code execution, this is
|
| 32 |
+
at least a cross-site scripting vector, which could be quite serious if
|
| 33 |
+
developers load a copy of the production database in development or connect to
|
| 34 |
+
some production services for which there's no development instance, for
|
| 35 |
+
example. If a project uses a package like the ``django-debug-toolbar``, then
|
| 36 |
+
the attacker could execute arbitrary SQL, which could be especially bad if the
|
| 37 |
+
developers connect to the database with a superuser account.
|
| 38 |
+
|
| 39 |
+
``settings.ALLOWED_HOSTS`` is now validated regardless of ``DEBUG``. For
|
| 40 |
+
convenience, if ``ALLOWED_HOSTS`` is empty and ``DEBUG=True``, the following
|
| 41 |
+
variations of localhost are allowed ``['localhost', '127.0.0.1', '::1']``. If
|
| 42 |
+
your local settings file has your production ``ALLOWED_HOSTS`` value, you must
|
| 43 |
+
now omit it to get those fallback values.
|
testbed/django__django/docs/releases/1.8.18.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.18 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*April 4, 2017*
|
| 6 |
+
|
| 7 |
+
Django 1.8.18 fixes two security issues in 1.8.17.
|
| 8 |
+
|
| 9 |
+
CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs
|
| 10 |
+
============================================================================================
|
| 11 |
+
|
| 12 |
+
Django relies on user input in some cases (e.g.
|
| 13 |
+
``django.contrib.auth.views.login()`` and :doc:`i18n </topics/i18n/index>`)
|
| 14 |
+
to redirect the user to an "on success" URL. The security check for these
|
| 15 |
+
redirects (namely ``django.utils.http.is_safe_url()``) considered some numeric
|
| 16 |
+
URLs (e.g. ``http:999999999``) "safe" when they shouldn't be.
|
| 17 |
+
|
| 18 |
+
Also, if a developer relies on ``is_safe_url()`` to provide safe redirect
|
| 19 |
+
targets and puts such a URL into a link, they could suffer from an XSS attack.
|
| 20 |
+
|
| 21 |
+
CVE-2017-7234: Open redirect vulnerability in ``django.views.static.serve()``
|
| 22 |
+
=============================================================================
|
| 23 |
+
|
| 24 |
+
A maliciously crafted URL to a Django site using the
|
| 25 |
+
:func:`~django.views.static.serve` view could redirect to any other domain. The
|
| 26 |
+
view no longer does any redirects as they don't provide any known, useful
|
| 27 |
+
functionality.
|
| 28 |
+
|
| 29 |
+
Note, however, that this view has always carried a warning that it is not
|
| 30 |
+
hardened for production use and should be used only as a development aid.
|
testbed/django__django/docs/releases/1.8.19.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.8.19 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*March 6, 2018*
|
| 6 |
+
|
| 7 |
+
Django 1.8.19 fixes two security issues in 1.18.18.
|
| 8 |
+
|
| 9 |
+
CVE-2018-7536: Denial-of-service possibility in ``urlize`` and ``urlizetrunc`` template filters
|
| 10 |
+
===============================================================================================
|
| 11 |
+
|
| 12 |
+
The ``django.utils.html.urlize()`` function was extremely slow to evaluate
|
| 13 |
+
certain inputs due to a catastrophic backtracking vulnerability in a regular
|
| 14 |
+
expression. The ``urlize()`` function is used to implement the ``urlize`` and
|
| 15 |
+
``urlizetrunc`` template filters, which were thus vulnerable.
|
| 16 |
+
|
| 17 |
+
The problematic regular expression is replaced with parsing logic that behaves
|
| 18 |
+
similarly.
|
| 19 |
+
|
| 20 |
+
CVE-2018-7537: Denial-of-service possibility in ``truncatechars_html`` and ``truncatewords_html`` template filters
|
| 21 |
+
==================================================================================================================
|
| 22 |
+
|
| 23 |
+
If ``django.utils.text.Truncator``'s ``chars()`` and ``words()`` methods were
|
| 24 |
+
passed the ``html=True`` argument, they were extremely slow to evaluate certain
|
| 25 |
+
inputs due to a catastrophic backtracking vulnerability in a regular
|
| 26 |
+
expression. The ``chars()`` and ``words()`` methods are used to implement the
|
| 27 |
+
``truncatechars_html`` and ``truncatewords_html`` template filters, which were
|
| 28 |
+
thus vulnerable.
|
| 29 |
+
|
| 30 |
+
The backtracking problem in the regular expression is fixed.
|
testbed/django__django/docs/releases/1.8.4.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.8.4 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*August 18, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.8.4 fixes a security issue and several bugs in 1.8.3.
|
| 8 |
+
|
| 9 |
+
Denial-of-service possibility in ``logout()`` view by filling session store
|
| 10 |
+
===========================================================================
|
| 11 |
+
|
| 12 |
+
Previously, a session could be created when anonymously accessing the
|
| 13 |
+
``django.contrib.auth.views.logout()`` view (provided it wasn't decorated
|
| 14 |
+
with :func:`~django.contrib.auth.decorators.login_required` as done in the
|
| 15 |
+
admin). This could allow an attacker to easily create many new session records
|
| 16 |
+
by sending repeated requests, potentially filling up the session store or
|
| 17 |
+
causing other users' session records to be evicted.
|
| 18 |
+
|
| 19 |
+
The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
|
| 20 |
+
modified to no longer create empty session records, including when
|
| 21 |
+
:setting:`SESSION_SAVE_EVERY_REQUEST` is active.
|
| 22 |
+
|
| 23 |
+
Bugfixes
|
| 24 |
+
========
|
| 25 |
+
|
| 26 |
+
* Added the ability to serialize values from the newly added
|
| 27 |
+
:class:`~django.db.models.UUIDField` (:ticket:`25019`).
|
| 28 |
+
|
| 29 |
+
* Added a system check warning if the old ``TEMPLATE_*`` settings are defined
|
| 30 |
+
in addition to the new ``TEMPLATES`` setting.
|
| 31 |
+
|
| 32 |
+
* Fixed ``QuerySet.raw()`` so ``InvalidQuery`` is not raised when using the
|
| 33 |
+
``db_column`` name of a ``ForeignKey`` field with ``primary_key=True``
|
| 34 |
+
(:ticket:`12768`).
|
| 35 |
+
|
| 36 |
+
* Prevented an exception in ``TestCase.setUpTestData()`` from leaking the
|
| 37 |
+
transaction (:ticket:`25176`).
|
| 38 |
+
|
| 39 |
+
* Fixed ``has_changed()`` method in ``contrib.postgres.forms.HStoreField``
|
| 40 |
+
(:ticket:`25215`, :ticket:`25233`).
|
| 41 |
+
|
| 42 |
+
* Fixed the recording of squashed migrations when running the ``migrate``
|
| 43 |
+
command (:ticket:`25231`).
|
| 44 |
+
|
| 45 |
+
* Moved the :ref:`unsaved model instance assignment data loss check
|
| 46 |
+
<unsaved-model-instance-check-18>` to ``Model.save()`` to allow easier usage
|
| 47 |
+
of in-memory models (:ticket:`25160`).
|
| 48 |
+
|
| 49 |
+
* Prevented ``varchar_patterns_ops`` and ``text_patterns_ops`` indexes for
|
| 50 |
+
``ArrayField`` (:ticket:`25180`).
|
testbed/django__django/docs/releases/1.8.5.txt
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.8.5 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*October 3, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.8.5 fixes several bugs in 1.8.4.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Made the development server's autoreload more robust (:ticket:`24704`).
|
| 13 |
+
|
| 14 |
+
* Fixed ``AssertionError`` in some delete queries with a model containing a
|
| 15 |
+
field that is both a foreign and primary key (:ticket:`24951`).
|
| 16 |
+
|
| 17 |
+
* Fixed ``AssertionError`` in some complex queries (:ticket:`24525`).
|
| 18 |
+
|
| 19 |
+
* Fixed a migrations crash with ``GenericForeignKey`` (:ticket:`25040`).
|
| 20 |
+
|
| 21 |
+
* Made ``translation.override()`` clear the overridden language when a
|
| 22 |
+
translation isn't initially active (:ticket:`25295`).
|
| 23 |
+
|
| 24 |
+
* Fixed crash when using a value in ``ModelAdmin.list_display`` that clashed
|
| 25 |
+
with a reverse field on the model (:ticket:`25299`).
|
| 26 |
+
|
| 27 |
+
* Fixed autocompletion for options of non-``argparse`` management commands
|
| 28 |
+
(:ticket:`25372`).
|
| 29 |
+
|
| 30 |
+
* Alphabetized ordering of imports in ``from django.db import migrations,
|
| 31 |
+
models`` statement in newly created migrations (:ticket:`25384`).
|
| 32 |
+
|
| 33 |
+
* Fixed migrations crash on MySQL when adding a text or a blob field with an
|
| 34 |
+
unhashable default (:ticket:`25393`).
|
| 35 |
+
|
| 36 |
+
* Changed ``Count`` queries to execute ``COUNT(*)`` instead of ``COUNT('*')``
|
| 37 |
+
as versions of Django before 1.8 did (:ticket:`25377`). This may fix a
|
| 38 |
+
performance regression on some databases.
|
| 39 |
+
|
| 40 |
+
* Fixed custom queryset chaining with ``values()`` and ``values_list()``
|
| 41 |
+
(:ticket:`20625`).
|
| 42 |
+
|
| 43 |
+
* Moved the :ref:`unsaved model instance assignment data loss check
|
| 44 |
+
<unsaved-model-instance-check-18>` on reverse relations to ``Model.save()``
|
| 45 |
+
(:ticket:`25160`).
|
| 46 |
+
|
| 47 |
+
* Readded inline foreign keys to form instances when validating model formsets
|
| 48 |
+
(:ticket:`25431`).
|
| 49 |
+
|
| 50 |
+
* Allowed using ORM write methods after disabling autocommit with
|
| 51 |
+
:func:`set_autocommit(False) <django.db.transaction.set_autocommit>`
|
| 52 |
+
(:ticket:`24921`).
|
| 53 |
+
|
| 54 |
+
* Fixed the ``manage.py test --keepdb`` option on Oracle (:ticket:`25421`).
|
| 55 |
+
|
| 56 |
+
* Fixed incorrect queries with multiple many-to-many fields on a model with the
|
| 57 |
+
same 'to' model and with ``related_name`` set to '+' (:ticket:`24505`,
|
| 58 |
+
:ticket:`25486`).
|
| 59 |
+
|
| 60 |
+
* Fixed pickling a ``SimpleLazyObject`` wrapping a model (:ticket:`25389`).
|
testbed/django__django/docs/releases/1.8.6.txt
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.8.6 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*November 4, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.8.6 adds official support for Python 3.5 and fixes several bugs in
|
| 8 |
+
1.8.5.
|
| 9 |
+
|
| 10 |
+
Bugfixes
|
| 11 |
+
========
|
| 12 |
+
|
| 13 |
+
* Fixed a regression causing ``ModelChoiceField`` to ignore
|
| 14 |
+
``prefetch_related()`` on its queryset (:ticket:`25496`).
|
| 15 |
+
|
| 16 |
+
* Allowed "mode=memory" in SQLite test database name if supported
|
| 17 |
+
(:ticket:`12118`).
|
| 18 |
+
|
| 19 |
+
* Fixed system check crash on ``ForeignKey`` to abstract model
|
| 20 |
+
(:ticket:`25503`).
|
| 21 |
+
|
| 22 |
+
* Fixed incorrect queries when you have multiple ``ManyToManyField``\s on
|
| 23 |
+
different models that have the same field name, point to the same model, and
|
| 24 |
+
have their reverse relations disabled (:ticket:`25545`).
|
| 25 |
+
|
| 26 |
+
* Allowed filtering over a ``RawSQL`` annotation (:ticket:`25506`).
|
| 27 |
+
|
| 28 |
+
* Made the ``Concat`` database function idempotent on SQLite (:ticket:`25517`).
|
| 29 |
+
|
| 30 |
+
* Avoided a confusing stack trace when starting :djadmin:`runserver` with an
|
| 31 |
+
invalid :setting:`INSTALLED_APPS` setting (:ticket:`25510`). This regression
|
| 32 |
+
appeared in 1.8.5 as a side effect of fixing :ticket:`24704`.
|
| 33 |
+
|
| 34 |
+
* Made deferred models use their proxied model's ``_meta.apps`` for caching
|
| 35 |
+
and retrieval (:ticket:`25563`). This prevents any models generated in data
|
| 36 |
+
migrations using ``QuerySet.defer()`` from leaking to test and application
|
| 37 |
+
code.
|
| 38 |
+
|
| 39 |
+
* Fixed a typo in the name of the ``strictly_above`` PostGIS lookup
|
| 40 |
+
(:ticket:`25592`).
|
| 41 |
+
|
| 42 |
+
* Fixed crash with ``contrib.postgres.forms.SplitArrayField`` and
|
| 43 |
+
``IntegerField`` on invalid value (:ticket:`25597`).
|
| 44 |
+
|
| 45 |
+
* Added a helpful error message when Django and South migrations exist in the
|
| 46 |
+
same directory (:ticket:`25618`).
|
| 47 |
+
|
| 48 |
+
* Fixed a regression in ``URLValidator`` that allowed URLs with consecutive
|
| 49 |
+
dots in the domain section (like ``http://example..com/``) to pass
|
| 50 |
+
(:ticket:`25620`).
|
| 51 |
+
|
| 52 |
+
* Fixed a crash with ``GenericRelation`` and
|
| 53 |
+
``BaseModelAdmin.to_field_allowed`` (:ticket:`25622`).
|
testbed/django__django/docs/releases/1.8.7.txt
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.8.7 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*November 24, 2015*
|
| 6 |
+
|
| 7 |
+
Django 1.8.7 fixes a security issue and several bugs in 1.8.6.
|
| 8 |
+
|
| 9 |
+
Additionally, Django's vendored version of six, ``django.utils.six``, has
|
| 10 |
+
been upgraded to the latest release (1.10.0).
|
| 11 |
+
|
| 12 |
+
Fixed settings leak possibility in ``date`` template filter
|
| 13 |
+
===========================================================
|
| 14 |
+
|
| 15 |
+
If an application allows users to specify an unvalidated format for dates and
|
| 16 |
+
passes this format to the :tfilter:`date` filter, e.g.
|
| 17 |
+
``{{ last_updated|date:user_date_format }}``, then a malicious user could
|
| 18 |
+
obtain any secret in the application's settings by specifying a settings key
|
| 19 |
+
instead of a date format. e.g. ``"SECRET_KEY"`` instead of ``"j/m/Y"``.
|
| 20 |
+
|
| 21 |
+
To remedy this, the underlying function used by the ``date`` template filter,
|
| 22 |
+
``django.utils.formats.get_format()``, now only allows accessing the date/time
|
| 23 |
+
formatting settings.
|
| 24 |
+
|
| 25 |
+
Bugfixes
|
| 26 |
+
========
|
| 27 |
+
|
| 28 |
+
* Fixed a crash of the debug view during the autumn DST change when
|
| 29 |
+
:setting:`USE_TZ` is ``False`` and ``pytz`` is installed.
|
| 30 |
+
|
| 31 |
+
* Fixed a regression in 1.8.6 that caused database routers without an
|
| 32 |
+
``allow_migrate()`` method to crash (:ticket:`25686`).
|
| 33 |
+
|
| 34 |
+
* Fixed a regression in 1.8.6 by restoring the ability to use ``Manager``
|
| 35 |
+
objects for the ``queryset`` argument of ``ModelChoiceField``
|
| 36 |
+
(:ticket:`25683`).
|
| 37 |
+
|
| 38 |
+
* Fixed a regression in 1.8.6 that caused an application with South migrations
|
| 39 |
+
in the ``migrations`` directory to fail (:ticket:`25618`).
|
| 40 |
+
|
| 41 |
+
* Fixed a data loss possibility with :class:`~django.db.models.Prefetch` if
|
| 42 |
+
``to_attr`` is set to a ``ManyToManyField`` (:ticket:`25693`).
|
| 43 |
+
|
| 44 |
+
* Fixed a regression in 1.8 by making ``gettext()`` once again return UTF-8
|
| 45 |
+
bytestrings on Python 2 if the input is a bytestring (:ticket:`25720`).
|
| 46 |
+
|
| 47 |
+
* Fixed serialization of
|
| 48 |
+
:class:`~django.contrib.postgres.fields.DateRangeField` and
|
| 49 |
+
:class:`~django.contrib.postgres.fields.DateTimeRangeField` (:ticket:`24937`).
|
| 50 |
+
|
| 51 |
+
* Fixed the exact lookup of ``ArrayField`` (:ticket:`25666`).
|
| 52 |
+
|
| 53 |
+
* Fixed ``Model.refresh_from_db()`` updating of ``ForeignKey`` fields with
|
| 54 |
+
``on_delete=models.SET_NULL`` (:ticket:`25715`).
|
| 55 |
+
|
| 56 |
+
* Fixed a duplicate query regression in 1.8 on proxied model deletion
|
| 57 |
+
(:ticket:`25685`).
|
| 58 |
+
|
| 59 |
+
* Fixed ``set_FOO_order()`` crash when the ``ForeignKey`` of a model with
|
| 60 |
+
``order_with_respect_to`` references a model with a ``OneToOneField``
|
| 61 |
+
primary key (:ticket:`25786`).
|
| 62 |
+
|
| 63 |
+
* Fixed incorrect validation for ``PositiveIntegerField`` and
|
| 64 |
+
``PositiveSmallIntegerField`` on MySQL resulting in values greater than
|
| 65 |
+
4294967295 or 65535, respectively, passing validation and being silently
|
| 66 |
+
truncated by the database (:ticket:`25767`).
|
testbed/django__django/docs/releases/1.8.8.txt
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.8.8 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 2, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.8.8 fixes several bugs in 1.8.7.
|
| 8 |
+
|
| 9 |
+
Python 3.2 users, please be advised that we've decided to drop support for
|
| 10 |
+
Python 3.2 in Django 1.8.x at the end of 2016. We won't break things
|
| 11 |
+
intentionally after that, but we won't test subsequent releases against Python
|
| 12 |
+
3.2 either. Upstream support for Python 3.2 ends February 2016 so we don't find
|
| 13 |
+
much value in providing security updates for a version of Python that could be
|
| 14 |
+
insecure. To read more about the decision and to let us know if this will be
|
| 15 |
+
problematic for you, please read the `django-developers thread
|
| 16 |
+
<https://groups.google.com/g/django-developers/c/eMu5UQpUdWs/discussion>`_.
|
| 17 |
+
|
| 18 |
+
Bugfixes
|
| 19 |
+
========
|
| 20 |
+
|
| 21 |
+
* Fixed incorrect ``unique_together`` field name generation by ``inspectdb``
|
| 22 |
+
(:ticket:`25274`).
|
| 23 |
+
|
| 24 |
+
* Corrected ``__len`` query lookup on ``ArrayField`` for empty arrays
|
| 25 |
+
(:ticket:`25772`).
|
| 26 |
+
|
| 27 |
+
* Restored the ability to use custom formats from ``formats.py`` with
|
| 28 |
+
``django.utils.formats.get_format()`` and the ``date`` template filter
|
| 29 |
+
(:ticket:`25812`).
|
| 30 |
+
|
| 31 |
+
* Fixed a state bug when migrating a ``SeparateDatabaseAndState`` operation
|
| 32 |
+
backwards (:ticket:`25896`).
|
| 33 |
+
|
| 34 |
+
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
|
| 35 |
+
``TextField`` respectively when using ``AlterField`` on PostgreSQL
|
| 36 |
+
(:ticket:`25412`).
|
| 37 |
+
|
| 38 |
+
* Fixed a state bug when using an ``AlterModelManagers`` operation
|
| 39 |
+
(:ticket:`25852`).
|
| 40 |
+
|
| 41 |
+
* Fixed a regression which prevented using a language not in Django's default
|
| 42 |
+
language list (:setting:`LANGUAGES`) (:ticket:`25915`).
|
| 43 |
+
|
| 44 |
+
* ``django.views.decorators.cache.never_cache()`` now sends more persuasive
|
| 45 |
+
headers (added ``no-cache, no-store, must-revalidate`` to ``Cache-Control``)
|
| 46 |
+
to better prevent caching (:ticket:`13008`). This fixes a problem where a
|
| 47 |
+
page refresh in Firefox cleared the selected entries in the admin's
|
| 48 |
+
``filter_horizontal`` and ``filter_vertical`` widgets, which could result
|
| 49 |
+
in inadvertent data loss if a user didn't notice that and then submitted the
|
| 50 |
+
form (:ticket:`22955`).
|
| 51 |
+
|
| 52 |
+
* Fixed a regression in the admin which ignored line breaks in read-only fields
|
| 53 |
+
instead of converting them to ``<br>`` (:ticket:`25465`).
|
| 54 |
+
|
| 55 |
+
* Made ``loaddata`` skip disabling and enabling database constraints when it
|
| 56 |
+
doesn't load any fixtures (:ticket:`23372`).
|
| 57 |
+
|
| 58 |
+
* Fixed a crash in ``QuerySet.values()/values_list()`` after an ``annotate()``
|
| 59 |
+
and ``order_by()`` when ``values()/values_list()`` includes a field not in
|
| 60 |
+
the ``order_by()`` (:ticket:`25316`).
|
testbed/django__django/docs/releases/1.9.1.txt
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.9.1 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 2, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.1 fixes several bugs in 1.9.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Fixed ``BaseCache.get_or_set()`` with the ``DummyCache`` backend
|
| 13 |
+
(:ticket:`25840`).
|
| 14 |
+
|
| 15 |
+
* Fixed a regression in ``FormMixin`` causing forms to be validated twice
|
| 16 |
+
(:ticket:`25548`, :ticket:`26018`).
|
| 17 |
+
|
| 18 |
+
* Fixed a system check crash with nested ``ArrayField``\s (:ticket:`25867`).
|
| 19 |
+
|
| 20 |
+
* Fixed a state bug when migrating a ``SeparateDatabaseAndState`` operation
|
| 21 |
+
backwards (:ticket:`25896`).
|
| 22 |
+
|
| 23 |
+
* Fixed a regression in ``CommonMiddleware`` causing ``If-None-Match`` checks
|
| 24 |
+
to always return HTTP 200 (:ticket:`25900`).
|
| 25 |
+
|
| 26 |
+
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
|
| 27 |
+
``TextField`` respectively when using ``AlterField`` on PostgreSQL
|
| 28 |
+
(:ticket:`25412`).
|
| 29 |
+
|
| 30 |
+
* Fixed admin's delete confirmation page's summary counts of related objects
|
| 31 |
+
(:ticket:`25883`).
|
| 32 |
+
|
| 33 |
+
* Added ``from __future__ import unicode_literals`` to the default ``apps.py``
|
| 34 |
+
created by ``startapp`` on Python 2 (:ticket:`25909`). Add this line to your
|
| 35 |
+
own ``apps.py`` files created using Django 1.9 if you want your migrations
|
| 36 |
+
to work on both Python 2 and Python 3.
|
| 37 |
+
|
| 38 |
+
* Prevented ``QuerySet.delete()`` from crashing on MySQL when querying across
|
| 39 |
+
relations (:ticket:`25882`).
|
| 40 |
+
|
| 41 |
+
* Fixed evaluation of zero-length slices of ``QuerySet.values()``
|
| 42 |
+
(:ticket:`25894`).
|
| 43 |
+
|
| 44 |
+
* Fixed a state bug when using an ``AlterModelManagers`` operation
|
| 45 |
+
(:ticket:`25852`).
|
| 46 |
+
|
| 47 |
+
* Fixed ``TypedChoiceField`` change detection with nullable fields
|
| 48 |
+
(:ticket:`25942`).
|
| 49 |
+
|
| 50 |
+
* Fixed incorrect timezone warnings in custom admin templates that don't have
|
| 51 |
+
a ``data-admin-utc-offset`` attribute in the ``body`` tag.
|
| 52 |
+
(:ticket:`25845`).
|
| 53 |
+
|
| 54 |
+
* Fixed a regression which prevented using a language not in Django's default
|
| 55 |
+
language list (:setting:`LANGUAGES`) (:ticket:`25915`).
|
| 56 |
+
|
| 57 |
+
* Avoided hiding some exceptions, like an invalid ``INSTALLED_APPS`` setting,
|
| 58 |
+
behind ``AppRegistryNotReady`` when starting ``runserver`` (:ticket:`25510`).
|
| 59 |
+
This regression appeared in 1.8.5 as a side effect of fixing :ticket:`24704`
|
| 60 |
+
and by mistake the fix wasn't applied to the ``stable/1.9.x`` branch.
|
| 61 |
+
|
| 62 |
+
* Fixed ``migrate --fake-initial`` detection of many-to-many tables
|
| 63 |
+
(:ticket:`25922`).
|
| 64 |
+
|
| 65 |
+
* Restored the functionality of the admin's ``list_editable`` add and change
|
| 66 |
+
buttons (:ticket:`25903`).
|
| 67 |
+
|
| 68 |
+
* Fixed ``isnull`` query lookup for ``ForeignObject``
|
| 69 |
+
(:ticket:`25972`).
|
| 70 |
+
|
| 71 |
+
* Fixed a regression in the admin which ignored line breaks in read-only fields
|
| 72 |
+
instead of converting them to ``<br>`` (:ticket:`25465`).
|
| 73 |
+
|
| 74 |
+
* Fixed incorrect object reference in
|
| 75 |
+
``SingleObjectMixin.get_context_object_name()`` (:ticket:`26006`).
|
| 76 |
+
|
| 77 |
+
* Made ``loaddata`` skip disabling and enabling database constraints when it
|
| 78 |
+
doesn't load any fixtures (:ticket:`23372`).
|
| 79 |
+
|
| 80 |
+
* Restored ``contrib.auth`` hashers compatibility with ``py-bcrypt``
|
| 81 |
+
(:ticket:`26016`).
|
| 82 |
+
|
| 83 |
+
* Fixed a crash in ``QuerySet.values()/values_list()`` after an ``annotate()``
|
| 84 |
+
and ``order_by()`` when ``values()/values_list()`` includes a field not in
|
| 85 |
+
the ``order_by()`` (:ticket:`25316`).
|
testbed/django__django/docs/releases/1.9.10.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.9.10 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*September 26, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.10 fixes a security issue in 1.9.9.
|
| 8 |
+
|
| 9 |
+
CSRF protection bypass on a site with Google Analytics
|
| 10 |
+
======================================================
|
| 11 |
+
|
| 12 |
+
An interaction between Google Analytics and Django's cookie parsing could allow
|
| 13 |
+
an attacker to set arbitrary cookies leading to a bypass of CSRF protection.
|
| 14 |
+
|
| 15 |
+
The parser for ``request.COOKIES`` is simplified to better match the behavior
|
| 16 |
+
of browsers and to mitigate this attack. ``request.COOKIES`` may now contain
|
| 17 |
+
cookies that are invalid according to :rfc:`6265` but are possible to set via
|
| 18 |
+
``document.cookie``.
|
testbed/django__django/docs/releases/1.9.11.txt
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.9.11 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*November 1, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.11 fixes two security issues in 1.9.10.
|
| 8 |
+
|
| 9 |
+
User with hardcoded password created when running tests on Oracle
|
| 10 |
+
=================================================================
|
| 11 |
+
|
| 12 |
+
When running tests with an Oracle database, Django creates a temporary database
|
| 13 |
+
user. In older versions, if a password isn't manually specified in the database
|
| 14 |
+
settings ``TEST`` dictionary, a hardcoded password is used. This could allow
|
| 15 |
+
an attacker with network access to the database server to connect.
|
| 16 |
+
|
| 17 |
+
This user is usually dropped after the test suite completes, but not when using
|
| 18 |
+
the ``manage.py test --keepdb`` option or if the user has an active session
|
| 19 |
+
(such as an attacker's connection).
|
| 20 |
+
|
| 21 |
+
A randomly generated password is now used for each test run.
|
| 22 |
+
|
| 23 |
+
DNS rebinding vulnerability when ``DEBUG=True``
|
| 24 |
+
===============================================
|
| 25 |
+
|
| 26 |
+
Older versions of Django don't validate the ``Host`` header against
|
| 27 |
+
``settings.ALLOWED_HOSTS`` when ``settings.DEBUG=True``. This makes them
|
| 28 |
+
vulnerable to a `DNS rebinding attack
|
| 29 |
+
<https://benmmurphy.github.io/blog/2016/07/11/rails-webconsole-dns-rebinding/>`_.
|
| 30 |
+
|
| 31 |
+
While Django doesn't ship a module that allows remote code execution, this is
|
| 32 |
+
at least a cross-site scripting vector, which could be quite serious if
|
| 33 |
+
developers load a copy of the production database in development or connect to
|
| 34 |
+
some production services for which there's no development instance, for
|
| 35 |
+
example. If a project uses a package like the ``django-debug-toolbar``, then
|
| 36 |
+
the attacker could execute arbitrary SQL, which could be especially bad if the
|
| 37 |
+
developers connect to the database with a superuser account.
|
| 38 |
+
|
| 39 |
+
``settings.ALLOWED_HOSTS`` is now validated regardless of ``DEBUG``. For
|
| 40 |
+
convenience, if ``ALLOWED_HOSTS`` is empty and ``DEBUG=True``, the following
|
| 41 |
+
variations of localhost are allowed ``['localhost', '127.0.0.1', '::1']``. If
|
| 42 |
+
your local settings file has your production ``ALLOWED_HOSTS`` value, you must
|
| 43 |
+
now omit it to get those fallback values.
|
testbed/django__django/docs/releases/1.9.12.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===========================
|
| 2 |
+
Django 1.9.12 release notes
|
| 3 |
+
===========================
|
| 4 |
+
|
| 5 |
+
*December 1, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.12 fixes a regression in 1.9.11.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Quoted the Oracle test user's password in queries to fix the "ORA-00922:
|
| 13 |
+
missing or invalid option" error when the password starts with a number or
|
| 14 |
+
special character (:ticket:`27420`).
|
testbed/django__django/docs/releases/1.9.7.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.9.7 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*June 4, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.7 fixes several bugs in 1.9.6.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Removed the need for the ``request`` context processor on the admin login
|
| 13 |
+
page to fix a regression in 1.9 (:ticket:`26558`).
|
| 14 |
+
|
| 15 |
+
* Fixed translation of password validators' ``help_text`` in forms
|
| 16 |
+
(:ticket:`26544`).
|
| 17 |
+
|
| 18 |
+
* Fixed a regression causing the cached template loader to crash when using
|
| 19 |
+
lazy template names (:ticket:`26603`).
|
| 20 |
+
|
| 21 |
+
* Fixed ``on_commit`` callbacks execution order when callbacks make
|
| 22 |
+
transactions (:ticket:`26627`).
|
| 23 |
+
|
| 24 |
+
* Fixed ``HStoreField`` to raise a ``ValidationError`` instead of crashing on
|
| 25 |
+
non-dictionary JSON input (:ticket:`26672`).
|
| 26 |
+
|
| 27 |
+
* Fixed ``dbshell`` crash on PostgreSQL with an empty database name
|
| 28 |
+
(:ticket:`26698`).
|
| 29 |
+
|
| 30 |
+
* Fixed a regression in queries on a ``OneToOneField`` that has ``to_field``
|
| 31 |
+
and ``primary_key=True`` (:ticket:`26667`).
|
testbed/django__django/docs/releases/1.9.8.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 1.9.8 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*July 18, 2016*
|
| 6 |
+
|
| 7 |
+
Django 1.9.8 fixes a security issue and several bugs in 1.9.7.
|
| 8 |
+
|
| 9 |
+
XSS in admin's add/change related popup
|
| 10 |
+
=======================================
|
| 11 |
+
|
| 12 |
+
Unsafe usage of JavaScript's ``Element.innerHTML`` could result in XSS in the
|
| 13 |
+
admin's add/change related popup. ``Element.textContent`` is now used to
|
| 14 |
+
prevent execution of the data.
|
| 15 |
+
|
| 16 |
+
The debug view also used ``innerHTML``. Although a security issue wasn't
|
| 17 |
+
identified there, out of an abundance of caution it's also updated to use
|
| 18 |
+
``textContent``.
|
| 19 |
+
|
| 20 |
+
Bugfixes
|
| 21 |
+
========
|
| 22 |
+
|
| 23 |
+
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
|
| 24 |
+
``TextField`` respectively when using ``AddField`` on PostgreSQL
|
| 25 |
+
(:ticket:`26889`).
|
| 26 |
+
|
| 27 |
+
* Fixed ``makemessages`` crash on Python 2 with non-ASCII file names
|
| 28 |
+
(:ticket:`26897`).
|
testbed/django__django/docs/releases/2.1.3.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 2.1.3 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*November 1, 2018*
|
| 6 |
+
|
| 7 |
+
Django 2.1.3 fixes several bugs in 2.1.2.
|
| 8 |
+
|
| 9 |
+
Bugfixes
|
| 10 |
+
========
|
| 11 |
+
|
| 12 |
+
* Fixed a regression in Django 2.0 where combining ``Q`` objects with ``__in``
|
| 13 |
+
lookups and lists crashed (:ticket:`29838`).
|
| 14 |
+
|
| 15 |
+
* Fixed a regression in Django 1.11 where ``django-admin shell`` may hang
|
| 16 |
+
on startup (:ticket:`29774`).
|
| 17 |
+
|
| 18 |
+
* Fixed a regression in Django 2.0 where test databases aren't reused with
|
| 19 |
+
``manage.py test --keepdb`` on MySQL (:ticket:`29827`).
|
| 20 |
+
|
| 21 |
+
* Fixed a regression where cached foreign keys that use ``to_field`` were
|
| 22 |
+
incorrectly cleared in ``Model.save()`` (:ticket:`29896`).
|
| 23 |
+
|
| 24 |
+
* Fixed a regression in Django 2.0 where ``FileSystemStorage`` crashes with
|
| 25 |
+
``FileExistsError`` if concurrent saves try to create the same directory
|
| 26 |
+
(:ticket:`29890`).
|
testbed/django__django/docs/releases/2.1.5.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
==========================
|
| 2 |
+
Django 2.1.5 release notes
|
| 3 |
+
==========================
|
| 4 |
+
|
| 5 |
+
*January 4, 2019*
|
| 6 |
+
|
| 7 |
+
Django 2.1.5 fixes a security issue and several bugs in 2.1.4.
|
| 8 |
+
|
| 9 |
+
CVE-2019-3498: Content spoofing possibility in the default 404 page
|
| 10 |
+
-------------------------------------------------------------------
|
| 11 |
+
|
| 12 |
+
An attacker could craft a malicious URL that could make spoofed content appear
|
| 13 |
+
on the default page generated by the ``django.views.defaults.page_not_found()``
|
| 14 |
+
view.
|
| 15 |
+
|
| 16 |
+
The URL path is no longer displayed in the default 404 template and the
|
| 17 |
+
``request_path`` context variable is now quoted to fix the issue for custom
|
| 18 |
+
templates that use the path.
|
| 19 |
+
|
| 20 |
+
Bugfixes
|
| 21 |
+
========
|
| 22 |
+
|
| 23 |
+
* Fixed compatibility with mysqlclient 1.3.14 (:ticket:`30013`).
|
| 24 |
+
|
| 25 |
+
* Fixed a schema corruption issue on SQLite 3.26+. You might have to drop and
|
| 26 |
+
rebuild your SQLite database if you applied a migration while using an older
|
| 27 |
+
version of Django with SQLite 3.26 or later (:ticket:`29182`).
|
| 28 |
+
|
| 29 |
+
* Prevented SQLite schema alterations while foreign key checks are enabled to
|
| 30 |
+
avoid the possibility of schema corruption (:ticket:`30023`).
|
| 31 |
+
|
| 32 |
+
* Fixed a regression in Django 2.1.4 (which enabled keep-alive connections)
|
| 33 |
+
where request body data isn't properly consumed for such connections
|
| 34 |
+
(:ticket:`30015`).
|
| 35 |
+
|
| 36 |
+
* Fixed a regression in Django 2.1.4 where
|
| 37 |
+
``InlineModelAdmin.has_change_permission()`` is incorrectly called with a
|
| 38 |
+
non-``None`` ``obj`` argument during an object add (:ticket:`30050`).
|