Django up to 1.6 template/defaulttags.py ALLOWED_INCLUDE_ROOTS path traversal

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability was found in Django up to 1.6. It has been classified as problematic. Affected is an unknown function of the file template/defaulttags.py. The manipulation of the argument ALLOWED_INCLUDE_ROOTS with the input ../ leads to path traversal. This vulnerability is referenced as CVE-2013-4315. Furthermore, an exploit is available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in Django up to 1.6 (Content Management System). It has been rated as critical. This issue affects an unknown code block of the file template/defaulttags.py. The manipulation of the argument ALLOWED_INCLUDE_ROOTS with the input value ../ leads to a path traversal vulnerability. Using CWE to declare the problem leads to CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

Directory traversal vulnerability in Django 1.4.x before 1.4.7, 1.5.x before 1.5.3, and 1.6.x before 1.6 beta 3 allows remote attackers to read arbitrary files via a file path in the ALLOWED_INCLUDE_ROOTS setting followed by a .. (dot dot) in a ssi template tag.

The weakness was published 09/10/2013 by Rainer Koirikivi as Security releases issued as confirmed advisory (Blog). It is possible to read the advisory at djangoproject.com. The public release has been coordinated with the project team. The identification of this vulnerability is CVE-2013-4315 since 06/12/2013. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a private exploit are known. The attack technique deployed by this issue is T1006 according to MITRE ATT&CK.

It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 69848 (Debian DSA-2755-1 : python-django - directory traversal), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 195918 (Ubuntu Security Notification for Python-django Vulnerabilities (USN-1967-1)).

Upgrading to version 1.4.7 or 1.5.3 eliminates this vulnerability. The upgrade is hosted for download at djangoproject.com. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (69848), SecurityFocus (BID 62332†), OSVDB (97275†), Secunia (SA54772†) and Vulnerability Center (SBV-41515†). debian.org is providing further details. Similar entries are available at VDB-10311, VDB-13065, VDB-13064 and VDB-13063. If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Path traversal
CWE: CWE-22
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Private
Status: Proof-of-Concept

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 69848
Nessus Name: Debian DSA-2755-1 : python-django - directory traversal
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 892755
OpenVAS Name: Debian Security Advisory DSA 2755-1 (python-django - directory traversal
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: Django 1.4.7/1.5.3

Timelineinfo

06/12/2013 🔍
09/10/2013 +90 days 🔍
09/10/2013 +0 days 🔍
09/11/2013 +1 days 🔍
09/11/2013 +0 days 🔍
09/12/2013 +1 days 🔍
09/12/2013 +0 days 🔍
09/16/2013 +4 days 🔍
09/16/2013 +0 days 🔍
09/17/2013 +1 days 🔍
05/24/2021 +2806 days 🔍

Sourcesinfo

Advisory: Security releases issued
Researcher: Rainer Koirikivi
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2013-4315 (🔍)
GCVE (CVE): GCVE-0-2013-4315
GCVE (VulDB): GCVE-100-10295

OVAL: 🔍

SecurityFocus: 62332 - Django CVE-2013-4315 Directory Traversal Vulnerability
Secunia: 54772 - Django "ssi" Template Tag Arbitrary File Disclosure Vulnerability, Less Critical
OSVDB: 97275
Vulnerability Center: 41515 - Django 1.4, 1.5 and 1.6 \x27ssi\x27 Directory Traversal Vulnerability Allows Remote File Access, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍

Entryinfo

Created: 09/17/2013 15:32
Updated: 05/24/2021 18:18
Changes: 09/17/2013 15:32 (86), 05/11/2017 08:49 (4), 05/24/2021 18:18 (3)
Complete: 🔍
Committer:
Cache ID: 216:F59:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!