1.4.13.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ===========================
  2. Django 1.4.13 release notes
  3. ===========================
  4. *May 14, 2014*
  5. Django 1.4.13 fixes two security issues in 1.4.12.
  6. Caches may incorrectly be allowed to store and serve private data
  7. =================================================================
  8. In certain situations, Django may allow caches to store private data
  9. related to a particular session and then serve that data to requests
  10. with a different session, or no session at all. This can lead to
  11. information disclosure and can be a vector for cache poisoning.
  12. When using Django sessions, Django will set a ``Vary: Cookie`` header to
  13. ensure caches do not serve cached data to requests from other sessions.
  14. However, older versions of Internet Explorer (most likely only Internet
  15. Explorer 6, and Internet Explorer 7 if run on Windows XP or Windows Server
  16. 2003) are unable to handle the ``Vary`` header in combination with many content
  17. types. Therefore, Django would remove the header if the request was made by
  18. Internet Explorer.
  19. To remedy this, the special behavior for these older Internet Explorer versions
  20. has been removed, and the ``Vary`` header is no longer stripped from the response.
  21. In addition, modifications to the ``Cache-Control`` header for all Internet Explorer
  22. requests with a ``Content-Disposition`` header have also been removed as they
  23. were found to have similar issues.
  24. Malformed redirect URLs from user input not correctly validated
  25. ===============================================================
  26. The validation for redirects did not correctly validate some malformed URLs,
  27. which are accepted by some browsers. This allows a user to be redirected to
  28. an unsafe URL unexpectedly.
  29. Django relies on user input in some cases (e.g.
  30. ``django.contrib.auth.views.login()``, ``django.contrib.comments``, and
  31. :doc:`i18n </topics/i18n/index>`) to redirect the user to an "on success" URL.
  32. The security checks for these redirects (namely
  33. ``django.utils.http.is_safe_url()``) did not correctly validate some malformed
  34. URLs, such as `http:\\\\\\djangoproject.com`, which are accepted by some browsers
  35. with more liberal URL parsing.
  36. To remedy this, the validation in ``is_safe_url()`` has been tightened to be able
  37. to handle and correctly validate these malformed URLs.