Bug 197188 - dev-python/django < 0.96.1 Potential Accept-Language header DoS (CVE-2007-5712)
Bug#: 197188 (CVE-2007-5712) Product:  Gentoo Security Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: security@gentoo.org Reported By: jan@codejunky.org
Component: Vulnerabilities
URL:  http://www.djangoproject.com/weblog/2007/oct/26/security-fix/
Summary: dev-python/django < 0.96.1 Potential Accept-Language header DoS (CVE-2007-5712)
Keywords:  
Status Whiteboard: ~3 [noglsa]
Opened: 2007-10-27 00:46 0000
Description:   Opened: 2007-10-27 00:46 0000
From the security page
(http://www.djangoproject.com/weblog/2007/oct/26/security-fix/):

Today we're releasing a fix for a security vulnerability discovered in Django's
internationalization framework. The complete details are below, but the
executive summary is that you should updated to a fixed version of Django
immediately.
We are releasing point-releases of all affected Django versions. You can
download them at http://www.djangoproject.com/download/. Those tracking trunk
development should "svn update" as soon as possible.
Please direct any questions about this release to django-users
(http://groups.google.com/group/django-users).
DESCRIPTION OF VULNERABILITY
A per-process cache used by Django's internationalization ("i18n") system to
store the results of translation lookups for particular values of the HTTP
Accept-Language header used the full value of that header as a key. An attacker
could take advantage of this by sending repeated requests with extremely large
strings in the Accept-Language header, potentially causing a denial of service
by filling available memory.
Due to limitations imposed by Web server software on the size of HTTP header
fields, combined with reasonable limits on the number of requests which may be
handled by a single server process over its lifetime, this vulnerability may be
difficult to exploit. Additionally, it is only present when the "USE_I18N"
setting in Django is "True" and the i18n middleware component is enabled*.
Nonetheless, all users of affected versions of Django are encouraged to update.
AFFECTED VERSIONS
 ...
 Django 0.96
 ...

dev-python/django needs to be bumped from 0.96 to 0.96.1

Reproducible: Always

------- Comment #1 From Robert Buchholz 2007-10-27 10:00:51 0000 -------
python and Seemant, please advise.

------- Comment #2 From Seemant Kulleen (RETIRED) 2007-10-27 12:00:18 0000 -------
I have an ebuild on the way in (already tested)

------- Comment #3 From Seemant Kulleen (RETIRED) 2007-10-27 12:11:02 0000 -------
in cvs, no keywording or other things necessary (it was never stable)