1.4.22.txt 1.4 KB

123456789101112131415161718192021222324252627282930
  1. ===========================
  2. Django 1.4.22 release notes
  3. ===========================
  4. *August 18, 2015*
  5. Django 1.4.22 fixes a security issue in 1.4.21.
  6. It also fixes support with pip 7+ by disabling wheel support. Older versions
  7. of 1.4 would silently build a broken wheel when installed with those versions
  8. of pip.
  9. Denial-of-service possibility in ``logout()`` view by filling session store
  10. ===========================================================================
  11. Previously, a session could be created when anonymously accessing the
  12. ``django.contrib.auth.views.logout()`` view (provided it wasn't decorated
  13. with :func:`~django.contrib.auth.decorators.login_required` as done in the
  14. admin). This could allow an attacker to easily create many new session records
  15. by sending repeated requests, potentially filling up the session store or
  16. causing other users' session records to be evicted.
  17. The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
  18. modified to no longer create empty session records, including when
  19. :setting:`SESSION_SAVE_EVERY_REQUEST` is active.
  20. Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and
  21. ``cache_db.SessionStore.flush()`` methods have been modified to avoid creating
  22. a new empty session. Maintainers of third-party session backends should check
  23. if the same vulnerability is present in their backend and correct it if so.