1.7.3.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ==========================
  2. Django 1.7.3 release notes
  3. ==========================
  4. *Under development*
  5. Django 1.7.3 fixes several security issues and bugs in 1.7.2.
  6. WSGI header spoofing via underscore/dash conflation
  7. ===================================================
  8. When HTTP headers are placed into the WSGI environ, they are normalized by
  9. converting to uppercase, converting all dashes to underscores, and prepending
  10. `HTTP_`. For instance, a header ``X-Auth-User`` would become
  11. ``HTTP_X_AUTH_USER`` in the WSGI environ (and thus also in Django's
  12. ``request.META`` dictionary).
  13. Unfortunately, this means that the WSGI environ cannot distinguish between
  14. headers containing dashes and headers containing underscores: ``X-Auth-User``
  15. and ``X-Auth_User`` both become ``HTTP_X_AUTH_USER``. This means that if a
  16. header is used in a security-sensitive way (for instance, passing
  17. authentication information along from a front-end proxy), even if the proxy
  18. carefully strips any incoming value for ``X-Auth-User``, an attacker may be
  19. able to provide an ``X-Auth_User`` header (with underscore) and bypass this
  20. protection.
  21. In order to prevent such attacks, both Nginx and Apache 2.4+ strip all headers
  22. containing underscores from incoming requests by default. Django's built-in
  23. development server now does the same. Django's development server is not
  24. recommended for production use, but matching the behavior of common production
  25. servers reduces the surface area for behavior changes during deployment.
  26. Bugfixes
  27. ========
  28. * The default iteration count for the PBKDF2 password hasher has been
  29. increased by 25%. This part of the normal major release process was
  30. inadvertently omitted in 1.7. This backwards compatible change will not
  31. affect users who have subclassed
  32. ``django.contrib.auth.hashers.PBKDF2PasswordHasher`` to change the
  33. default value.
  34. * Fixed a crash in the CSRF middleware when handling non-ASCII referer header
  35. (:ticket:`23815`).
  36. * Fixed a crash in the ``django.contrib.auth.redirect_to_login`` view when
  37. passing a :func:`~django.core.urlresolvers.reverse_lazy` result on Python 3
  38. (:ticket:`24097`).
  39. * Added correct formats for Greek (``el``) (:ticket:`23967`).
  40. * Fixed a migration crash when unapplying a migration where multiple operations
  41. interact with the same model (:ticket:`24110`).