Debian DSA-2755-1 : python-django - directory traversal

medium Nessus Plugin ID 69848

Synopsis

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

Description

Rainer Koirikivi discovered a directory traversal vulnerability with'ssi' template tags in python-django, a high-level Python web development framework.

It was shown that the handling of the 'ALLOWED_INCLUDE_ROOTS' setting, used to represent allowed prefixes for the {% ssi %} template tag, is vulnerable to a directory traversal attack, by specifying a file path which begins as the absolute path of a directory in'ALLOWED_INCLUDE_ROOTS', and then uses relative paths to break free.

To exploit this vulnerability an attacker must be in a position to alter templates on the site, or the site to be attacked must have one or more templates making use of the 'ssi' tag, and must allow some form of unsanitized user input to be used as an argument to the 'ssi' tag.

Solution

Upgrade the python-django packages.

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

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

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-2755

Plugin Details

Severity: Medium

ID: 69848

File Name: debian_DSA-2755.nasl

Version: 1.9

Type: local

Agent: unix

Published: 9/12/2013

Updated: 1/11/2021

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

Risk Information

VPR

Risk Factor: Low

Score: 3.4

CVSS v2

Risk Factor: Medium

Base Score: 5

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

Vulnerability Information

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

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

Patch Publication Date: 9/11/2013

Reference Information

CVE: CVE-2013-4315

DSA: 2755