Django up to 1.7 Redirect django.util.http.is_safe_url input validation

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.
5.1$0-$5k0.00

Summaryinfo

A vulnerability labeled as critical has been found in Django. The impacted element is the function django.util.http.is_safe_url of the component Redirect Handler. Executing a manipulation can lead to input validation. This vulnerability is registered as CVE-2014-3730. No exploit is available. The affected component should be upgraded.

Detailsinfo

A vulnerability classified as critical was found in Django (Content Management System). This vulnerability affects the function django.util.http.is_safe_url of the component Redirect Handler. The manipulation with an unknown input leads to a input validation vulnerability. The CWE definition for the vulnerability is CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. As an impact it is known to affect confidentiality. CVE summarizes:

The django.util.http.is_safe_url function in Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly validate URLs, which allows remote attackers to conduct open redirect attacks via a malformed URL, as demonstrated by "http:\\\djangoproject.com."

The weakness was published 05/14/2014 by Peter Kuma and Gavin Wahl as Security releases issued as confirmed blog post (Website). The advisory is shared for download at djangoproject.com. This vulnerability was named CVE-2014-3730 since 05/14/2014. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. There are known technical details, but no exploit is available. The advisory points out:

Django relies on user input in some cases (e.g. django.contrib.auth.views.login, django.contrib.comments, and i18n) to redirect the user to an "on success" URL. The security checks for these redirects (namely django.util.http.is_safe_url()) did not correctly validate some malformed URLs, such as http:\\\djangoproject.com, which are accepted by some browsers with more liberal URL parsing.

The vulnerability scanner Nessus provides a plugin with the ID 74097 (Debian DSA-2934-1 : python-django - security update), 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 167246 (OpenSuSE Security Update for python-django (openSUSE-SU-2014:1132-1)).

Upgrading to version 1.4.13, 1.5.8, 1.6.5 or 1.7 beta 4 eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability. The blog post contains the following remark:

To remedy this, the validation in is_safe_url() has been tightened to be able to handle and correctly validate these malformed URLs.

The vulnerability is also documented in the databases at X-Force (93158), Tenable (74097), SecurityFocus (BID 67410†), Secunia (SA58638†) and Vulnerability Center (SBV-47192†). Similar entries are available at VDB-10295, VDB-13065, VDB-13064 and VDB-13063. Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 5.1

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 74097
Nessus Name: Debian DSA-2934-1 : python-django - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 702934
OpenVAS Name: Debian Security Advisory DSA 2934-1 (python-django - security update
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.13/1.5.8/1.6.5/1.7 beta 4

Timelineinfo

05/14/2014 🔍
05/14/2014 +0 days 🔍
05/14/2014 +0 days 🔍
05/14/2014 +0 days 🔍
05/15/2014 +1 days 🔍
05/16/2014 +1 days 🔍
05/16/2014 +0 days 🔍
05/17/2014 +1 days 🔍
11/19/2014 +186 days 🔍
06/19/2021 +2404 days 🔍

Sourcesinfo

Advisory: Security releases issued
Researcher: Peter Kuma, Gavin Wahl
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2014-3730 (🔍)
GCVE (CVE): GCVE-0-2014-3730
GCVE (VulDB): GCVE-100-13240

OVAL: 🔍

X-Force: 93158 - Django malformed URL security bypass, Medium Risk
SecurityFocus: 67410 - Django 'is_safe_url()' Function URI Redirection Vulnerability
Secunia: 58638 - Django Redirection Weakness and Information Disclosure Vulnerability, Less Critical
Vulnerability Center: 47192 - Django 1.4 - 1.4.12, 1.5 - 1.5.7, 1.6 - 1.6.4, 1.7 - 1.7b3 Remote Pishing via a Crafted URL, Medium

See also: 🔍

Entryinfo

Created: 05/17/2014 15:15
Updated: 06/19/2021 17:51
Changes: 05/17/2014 15:15 (83), 06/12/2017 08:35 (4), 06/19/2021 17:51 (3)
Complete: 🔍
Cache ID: 216:EAF:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!