Debian DSA-2332-1 : python-django - several issues

medium Nessus Plugin ID 56671

Synopsis

The remote Debian host is missing a security-related update.

Description

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.

Solution

Upgrade the python-django packages.

For the oldstable distribution (lenny), this problem has been fixed in version 1.0.2-1+lenny3.

For the stable distribution (squeeze), this problem has been fixed in version 1.2.3-3+squeeze2.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641405

https://security-tracker.debian.org/tracker/CVE-2011-4136

https://security-tracker.debian.org/tracker/CVE-2011-4137

https://security-tracker.debian.org/tracker/CVE-2011-4138

https://security-tracker.debian.org/tracker/CVE-2011-4139

https://security-tracker.debian.org/tracker/CVE-2011-4140

https://packages.debian.org/source/squeeze/python-django

https://www.debian.org/security/2011/dsa-2332

Plugin Details

Severity: Medium

ID: 56671

File Name: debian_DSA-2332.nasl

Version: 1.10

Type: local

Agent: unix

Published: 10/31/2011

Updated: 1/11/2021

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:6.0, cpe:/o:debian:debian_linux:5.0, p-cpe:/a:debian:debian_linux:python-django

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 10/29/2011

Reference Information

CVE: CVE-2011-4136, CVE-2011-4137, CVE-2011-4138, CVE-2011-4139, CVE-2011-4140

BID: 49573

DSA: 2332