Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1437234 - (CVE-2017-7233) CVE-2017-7233 python-django: Open redirect and possible XSS attack via user-supplied numeric redirect URLs
CVE-2017-7233 python-django: Open redirect and possible XSS attack via user-s...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170404,repor...
: Security
Depends On: 1488634 1437734 1437735 1437736 1437737 1437739 1469881 1488635 1488636 1488637 1543945 1543946
Blocks: 1437237
  Show dependency treegraph
 
Reported: 2017-03-29 16:36 EDT by Adam Mariš
Modified: 2018-10-16 11:19 EDT (History)
41 users (show)

See Also:
Fixed In Version: python-django 1.8.18, python-django 1.9.13, python-django 1.10.7, python-django 1.11
Doc Type: If docs needed, set a value
Doc Text:
A redirect flaw, where the is_safe_url() function did not correctly sanitize numeric-URL user input, was found in python-django. A remote attacker could exploit this flaw to perform XSS attacks against the OpenStack dashboard.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-10-31 19:54:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Upstream patch 1.10.x (8.15 KB, patch)
2017-03-29 16:45 EDT, Adam Mariš
no flags Details | Diff
Upstream patch 1.8.x (6.01 KB, patch)
2017-03-29 16:46 EDT, Adam Mariš
no flags Details | Diff
Upstream patch 1.9.x (7.35 KB, patch)
2017-03-29 16:46 EDT, Adam Mariš
no flags Details | Diff
Upstream patch 1.11.x (8.18 KB, patch)
2017-03-29 16:47 EDT, Adam Mariš
no flags Details | Diff
Upstream patch master (7.82 KB, patch)
2017-03-29 16:47 EDT, Adam Mariš
no flags Details | Diff
Backport to 1.6.11 (6.05 KB, patch)
2017-04-06 15:13 EDT, Lon Hohberger
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:1445 normal SHIPPED_LIVE Moderate: python-django security update 2017-06-14 15:19:41 EDT
Red Hat Product Errata RHSA-2017:1451 normal SHIPPED_LIVE Moderate: python-django security update 2017-06-14 15:18:24 EDT
Red Hat Product Errata RHSA-2017:1462 normal SHIPPED_LIVE Moderate: python-django security update 2017-06-14 15:17:35 EDT
Red Hat Product Errata RHSA-2017:1470 normal SHIPPED_LIVE Moderate: python-django security update 2017-06-14 15:28:05 EDT
Red Hat Product Errata RHSA-2017:1596 normal SHIPPED_LIVE Moderate: python-django security update 2017-06-28 14:53:25 EDT
Red Hat Product Errata RHSA-2017:3093 normal SHIPPED_LIVE Moderate: python-django security update 2017-10-31 17:21:07 EDT
Red Hat Product Errata RHSA-2018:2927 None None None 2018-10-16 11:19 EDT

  None (edit)
Description Adam Mariš 2017-03-29 16:36:33 EDT
Django relies on user input in some cases (e.g. django.contrib.auth.views.login() and i18n to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url()) considered some numeric URLs (e.g. http:999999999) "safe" when they shouldn't be.

Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.

Affected versions:
* Django master development branch
* Django 1.11 (currently at release candidate status)
* Django 1.10
* Django 1.9
* Django 1.8
Comment 1 Adam Mariš 2017-03-29 16:36:54 EDT
Acknowledgments:

Name: the Django project
Comment 2 Adam Mariš 2017-03-29 16:45 EDT
Created attachment 1267353 [details]
Upstream patch 1.10.x
Comment 3 Adam Mariš 2017-03-29 16:46 EDT
Created attachment 1267354 [details]
Upstream patch 1.8.x
Comment 4 Adam Mariš 2017-03-29 16:46 EDT
Created attachment 1267355 [details]
Upstream patch 1.9.x
Comment 5 Adam Mariš 2017-03-29 16:47 EDT
Created attachment 1267356 [details]
Upstream patch 1.11.x
Comment 6 Adam Mariš 2017-03-29 16:47 EDT
Created attachment 1267357 [details]
Upstream patch master
Comment 8 Andrej Nemec 2017-04-05 08:51:25 EDT
Public via:

https://www.djangoproject.com/weblog/2017/apr/04/security-releases/
Comment 9 Lon Hohberger 2017-04-06 15:13 EDT
Created attachment 1269476 [details]
Backport to 1.6.11
Comment 10 errata-xmlrpc 2017-06-14 11:24:59 EDT
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 9.0 (Mitaka)

Via RHSA-2017:1462 https://access.redhat.com/errata/RHSA-2017:1462
Comment 11 errata-xmlrpc 2017-06-14 11:27:09 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7

Via RHSA-2017:1451 https://access.redhat.com/errata/RHSA-2017:1451
Comment 12 errata-xmlrpc 2017-06-14 11:32:04 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7

Via RHSA-2017:1445 https://access.redhat.com/errata/RHSA-2017:1445
Comment 13 errata-xmlrpc 2017-06-14 11:36:26 EDT
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 8.0 (Liberty)

Via RHSA-2017:1470 https://access.redhat.com/errata/RHSA-2017:1470
Comment 14 errata-xmlrpc 2017-06-28 11:19:54 EDT
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)

Via RHSA-2017:1596 https://access.redhat.com/errata/RHSA-2017:1596
Comment 16 Summer Long 2017-09-05 18:38:12 EDT
Created Django14 tracking bugs for this issue:

Affects: epel-6 [bug 1488635]


Created python-django tracking bugs for this issue:

Affects: epel-7 [bug 1488634]
Affects: fedora-all [bug 1488636]
Comment 20 errata-xmlrpc 2017-10-31 13:22:04 EDT
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 11.0 (Ocata)

Via RHSA-2017:3093 https://access.redhat.com/errata/RHSA-2017:3093
Comment 23 Kurt Seifried 2018-02-09 10:50:24 EST
Statement:

This issue affects the versions of python-django as shipped with Red Hat Satellite 6. Please note that python-django, as used by Pulp does not make use of the Pulp doesn't use "is_safe_url" directly or the "i18n" views or the "django.contrib.auth" Login view. Red Hat Product Security has rated this issue as having Low security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Comment 25 errata-xmlrpc 2018-10-16 11:19:01 EDT
This issue has been addressed in the following products:

  Red Hat Satellite 6.4 for RHEL 7

Via RHSA-2018:2927 https://access.redhat.com/errata/RHSA-2018:2927

Note You need to log in before you can comment on or make changes to this bug.