Distro advisory · Debian 5
python-django - several issues
Description
Vulnerability : several issues Problem type : remote Debian-specific: no CVE ID : CVE-2011-4136 CVE-2011-4137 CVE-2011-4138 CVE-2011-4139 CVE-2011-4140 Debian Bug : 641405
Paul McMillan, Mozilla and the Django core team discovered several vulnerabilities in Django, a Python web framework:
CVE-2011-4136
When using memory-based sessions and caching, Django sessions are stored directly in the root namespace of the cache. When user data is stored in the same cache, a remote user may take over a session.
CVE-2011-4137, CVE-2011-4138
Django's field type URLfield by default checks supplied URL's by issuing a request to it, which doesn't time out. A Denial of Service is possible by supplying specially prepared URL's that keep the connection open indefinately or fill the Django's server memory.
CVE-2011-4139
Django used X-Forwarded-Host headers to construct full URL's. This header may not contain trusted input and could be used to poison the cache.
CVE-2011-4140
The CSRF protection mechanism in Django does not properly handle web-server configurations supporting arbitrary HTTP Host headers, which allows remote attackers to trigger unauthenticated forged requests.
Manual fix · Debian 5
sudo apt-get updatesudo apt-get install --only-upgrade python-djangodpkg -s python-django | grep VersionSources