Debian DSA-3835-1 : python-django - security update

critical Nessus Plugin ID 99695

Synopsis

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

Description

Several vulnerabilities were discovered in Django, a high-level Python web development framework. The Common Vulnerabilities and Exposures project identifies the following problems :

- CVE-2016-9013 Marti Raudsepp reported that a user with a hard-coded password is created when running tests with an Oracle database.

- CVE-2016-9014 Aymeric Augustin discovered that Django does not properly validate the Host header against settings.ALLOWED_HOSTS when the debug setting is enabled. A remote attacker can take advantage of this flaw to perform DNS rebinding attacks.

- CVE-2017-7233 It was discovered that is_safe_url() does not properly handle certain numeric URLs as safe. A remote attacker can take advantage of this flaw to perform XSS attacks or to use a Django server as an open redirect.

- CVE-2017-7234 Phithon from Chaitin Tech discovered an open redirect vulnerability in the django.views.static.serve() view.
Note that this view is not intended for production use.

Solution

Upgrade the python-django packages.

For the stable distribution (jessie), these problems have been fixed in version 1.7.11-1+deb8u2.

See Also

https://security-tracker.debian.org/tracker/CVE-2017-7234

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

https://www.debian.org/security/2017/dsa-3835

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

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

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

https://security-tracker.debian.org/tracker/CVE-2016-9013

https://security-tracker.debian.org/tracker/CVE-2016-9014

https://security-tracker.debian.org/tracker/CVE-2017-7233

Plugin Details

Severity: Critical

ID: 99695

File Name: debian_DSA-3835.nasl

Version: 3.7

Type: local

Agent: unix

Published: 4/27/2017

Updated: 1/11/2021

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:python-django, cpe:/o:debian:debian_linux:8.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: 4/26/2017

Reference Information

CVE: CVE-2016-9013, CVE-2016-9014, CVE-2017-7233, CVE-2017-7234

DSA: 3835