Django 'django.views.static.serve()' Function Open Redirection Vulnerability

BID:97401

Info

Django 'django.views.static.serve()' Function Open Redirection Vulnerability

Bugtraq ID: 97401
Class: Input Validation Error
CVE: CVE-2017-7234
Remote: Yes
Local: No
Published: Apr 04 2017 12:00AM
Updated: Apr 11 2017 12:03AM
Credit: Phithon Gong
Vulnerable: Ubuntu Ubuntu Linux 16.10
Ubuntu Ubuntu Linux 16.04 LTS
Ubuntu Ubuntu Linux 14.04 LTS
Ubuntu Ubuntu Linux 12.04 LTS i386
Ubuntu Ubuntu Linux 12.04 LTS amd64
Djangoproject Django 1.10.6
Djangoproject Django 1.10.5
Djangoproject Django 1.10.3
Djangoproject Django 1.10.2
Djangoproject Django 1.10.1
Djangoproject Django 1.9.12
Djangoproject Django 1.9.11
Djangoproject Django 1.9.10
Djangoproject Django 1.9.9
Djangoproject Django 1.9.3
Djangoproject Django 1.8.16
Djangoproject Django 1.8.15
Djangoproject Django 1.8.14
Djangoproject Django 1.8.10
Djangoproject Django 1.8.7
Djangoproject Django 1.8.6
Djangoproject Django 1.8.5
Djangoproject Django 1.8.4
Djangoproject Django 1.8.3
Djangoproject Django 1.8.2
Djangoproject Django 1.8.1
Djangoproject Django 1.8
Djangoproject Django 1.9.2
Djangoproject Django 1.9.1
Djangoproject Django 1.9
Djangoproject Django 1.10
Not Vulnerable: Djangoproject Django 1.10.7
Djangoproject Django 1.9.13
Djangoproject Django 1.8.18

Discussion

Django 'django.views.static.serve()' Function Open Redirection Vulnerability

Django is prone to an open-redirection vulnerability because it fails to properly sanitize user-supplied input.

An attacker can leverage this issue by constructing a crafted URI and enticing a user to follow it. When an unsuspecting victim follows the link, they may be redirected to an attacker-controlled site; this may aid in phishing attacks. Other attacks are possible.

Versions prior to Django 1.10.7, 1.9.13, and 1.8.18 are vulnerable.

Exploit / POC

Django 'django.views.static.serve()' Function Open Redirection Vulnerability

An attacker can exploit this issue by enticing an unsuspecting victim to follow a malicious URI.

Solution / Fix

Django 'django.views.static.serve()' Function Open Redirection Vulnerability

Solution:
Updates are available. Please see the references or vendor advisory for more information.

References

Django 'django.views.static.serve()' Function Open Redirection Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report