Open redirect in Django - CVE-2018-14574

 

Open redirect in Django - CVE-2018-14574

Published: August 1, 2018 / Updated: August 2, 2018


Vulnerability identifier: #VU14175
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-14574
CWE-ID: CWE-601
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote unauthenticated attacker to redirect the target user to external websites.

The weakness exists on systems with django.middleware.common.CommonMiddleware and the APPEND_SLASH setting enabled and with a project that has a URL pattern that accepts any path ending in a slash due to open redirect. A remote attacker can use a specially crafted image link, trick the victim into opening it and redirect users to malicious website

Affected software

Django
Arch Linux
Debian Linux
Fedora
SUSE Linux
Opensuse
py-django (Alpine package)
python-django16
python-django
python2-django1.11
Red Hat Gluster Storage Server for On-premise

How to mitigate CVE-2018-14574

The vulnerability is addressed in the versions 1.11.15, 2.0.8.

Django - addressed in versions 1.11.15, 2.0.8
py-django (Alpine package) - update to 1.11.15-r0
python-django16 - update to 1.6.11.7-5.el7
python-django - addressed in versions 1.11.13-2.el7, 1.11.13-4.el7, 2.0.9-1.fc29
python2-django1.11 - update to 1.11.15-2.fc28

External References

Related Security Bulletins