2
0

1.4.7.txt 892 B

12345678910111213141516171819202122232425
  1. ==========================
  2. Django 1.4.7 release notes
  3. ==========================
  4. *September 10, 2013*
  5. Django 1.4.7 fixes one security issue present in previous Django releases in
  6. the 1.4 series.
  7. Directory traversal vulnerability in :ttag:`ssi` template tag
  8. -------------------------------------------------------------
  9. In previous versions of Django it was possible to bypass the
  10. :setting:`ALLOWED_INCLUDE_ROOTS` setting used for security with the :ttag:`ssi`
  11. template tag by specifying a relative path that starts with one of the allowed
  12. roots. For example, if ``ALLOWED_INCLUDE_ROOTS = ("/var/www",)`` the following
  13. would be possible:
  14. .. code-block:: html+django
  15. {% ssi "/var/www/../../etc/passwd" %}
  16. In practice this is not a very common problem, as it would require the template
  17. author to put the :ttag:`ssi` file in a user-controlled variable, but it's
  18. possible in principle.