Debian DLA-349-1 : python-django security update

medium Nessus Plugin ID 87070

Synopsis

The remote Debian host is missing a security update.

Description

It was discovered that there was a potential settings leak in date template filter of Django, a web-development framework.

If an application allows users to specify an unvalidated format for dates and passes this format to the date filter, e.g. {{ last_updated|date:user_date_format }}, then a malicious user could obtain any secret in the application's settings by specifying a settings key instead of a date format. e.g. 'SECRET_KEY' instead of 'j/m/Y'.

To remedy this, the underlying function used by the date template filter, django.utils.formats.get_format(), now only allows accessing the date/time formatting settings.

For Debian 6 Squeeze, this issue has been fixed in python-django version 1.2.3-3+squeeze15.

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Upgrade the affected python-django, and python-django-doc packages.

See Also

https://lists.debian.org/debian-lts-announce/2015/11/msg00009.html

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

Plugin Details

Severity: Medium

ID: 87070

File Name: debian_DLA-349.nasl

Version: 2.7

Type: local

Agent: unix

Published: 11/30/2015

Updated: 1/11/2021

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

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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, p-cpe:/a:debian:debian_linux:python-django-doc, cpe:/o:debian:debian_linux:6.0

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

Exploit Ease: No known exploits are available

Patch Publication Date: 11/25/2015

Reference Information

CVE: CVE-2015-8213