Debian DSA-2740-2 : python-django - XSS vulnerability

medium Nessus Plugin ID 69459

Synopsis

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

Description

Nick Brunn reported a possible cross-site scripting vulnerability in python-django, a high-level Python web development framework.

The is_safe_url utility function used to validate that a used URL is on the current host to avoid potentially dangerous redirects from maliciously-constructed querystrings, worked as intended for HTTP and HTTPS URLs, but permitted redirects to other schemes, such as javascript:.

The is_safe_url function has been modified to properly recognize and reject URLs which specify a scheme other than HTTP or HTTPS, to prevent cross-site scripting attacks through redirecting to other schemes.

Solution

Upgrade the python-django packages.

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

For the stable distribution (wheezy), this problem has been fixed in version 1.4.5-1+deb7u2.

See Also

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

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

https://www.debian.org/security/2013/dsa-2740

Plugin Details

Severity: Medium

ID: 69459

File Name: debian_DSA-2740.nasl

Version: 1.10

Type: local

Agent: unix

Published: 8/25/2013

Updated: 1/11/2021

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

Risk Information

VPR

Risk Factor: Low

Score: 3.0

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:6.0, cpe:/o:debian:debian_linux:7.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

Reference Information

CVE: CVE-2013-6044

BID: 61777

DSA: 2740