1.7.10.txt 1.2 KB

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