Django up to 1.7 Redirect django.util.http.is_safe_url input validation
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.1 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Type
Name
Version
- 1.4
- 1.4.1
- 1.4.2
- 1.4.4
- 1.4.5
- 1.4.6
- 1.4.7
- 1.4.8
- 1.4.9
- 1.4.10
- 1.4.11
- 1.4.12
- 1.5
- 1.5.1
- 1.5.2
- 1.5.3
- 1.5.4
- 1.5.5
- 1.5.6
- 1.5.7
- 1.6.1
- 1.6.2
- 1.6.3
- 1.6.4
- 1.7
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 5.1
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Input validationCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: Django 1.4.13/1.5.8/1.6.5/1.7 beta 4
Timeline
05/14/2014 🔍05/14/2014 🔍
05/14/2014 🔍
05/14/2014 🔍
05/15/2014 🔍
05/16/2014 🔍
05/16/2014 🔍
05/17/2014 🔍
11/19/2014 🔍
06/19/2021 🔍
Sources
Advisory: Security releases issuedResearcher: 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: 🔍
Entry
Created: 05/17/2014 15:15Updated: 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
No comments yet. Languages: en.
Please log in to comment.