1.4.6.txt 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. ==========================
  2. Django 1.4.6 release notes
  3. ==========================
  4. *August 13, 2013*
  5. Django 1.4.6 fixes one security issue present in previous Django releases in
  6. the 1.4 series, as well as one other bug.
  7. This is the sixth bugfix/security release in the Django 1.4 series.
  8. Mitigated possible XSS attack via user-supplied redirect URLs
  9. -------------------------------------------------------------
  10. Django relies on user input in some cases (e.g.
  11. :func:`django.contrib.auth.views.login`, :mod:`django.contrib.comments`, and
  12. :doc:`i18n </topics/i18n/index>`) to redirect the user to an "on success" URL.
  13. The security checks for these redirects (namely
  14. ``django.util.http.is_safe_url()``) didn't check if the scheme is ``http(s)``
  15. and as such allowed ``javascript:...`` URLs to be entered. If a developer
  16. relied on ``is_safe_url()`` to provide safe redirect targets and put such a
  17. URL into a link, he could suffer from a XSS attack. This bug doesn't affect
  18. Django currently, since we only put this URL into the ``Location`` response
  19. header and browsers seem to ignore JavaScript there.
  20. Bugfixes
  21. ========
  22. * Fixed an obscure bug with the :func:`~django.test.utils.override_settings`
  23. decorator. If you hit an ``AttributeError: 'Settings' object has no attribute
  24. '_original_allowed_hosts'`` exception, it's probably fixed (#20636).