PT-2015-4527 · Django Software Foundation+1 · Django+1

Mikko Ohtamaa

·

Published

2015-01-13

·

Updated

2022-05-17

·

CVE-2015-0220

CVSS v4.0

5.3

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions Django versions 1.4.0 through 1.4.17 Django versions 1.6.0 through 1.6.9 Django versions 1.7.0 through 1.7.2
Description The issue allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs. This is demonstrated by a javascript: URL, which takes advantage of the improper handling of leading whitespaces by the django.util.http.is safe url function.
Recommendations For Django versions 1.4.0 through 1.4.17, update to version 1.4.18 or later. For Django versions 1.6.0 through 1.6.9, update to version 1.6.10 or later. For Django versions 1.7.0 through 1.7.2, update to version 1.7.3 or later.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2015-0220
DLA-143-1
DSA-3151-1
GHSA-GV98-G628-M9X5
MGASA-2015-0026
PYSEC-2015-5
SUSE-SU-2015:0563-1
SUSE-SU-2015:0695-1
USN-2469-1

Affected Products

Django
Ubuntu