(Red Hat Issues Fix) Django Bugs Let Remote Users Conduct Redirect and Cross-Site Scripting Attacks and Determine Valid Usernames
SecurityTracker Alert ID: 1035388|
SecurityTracker URL: http://securitytracker.com/id/1035388
(Links to External Site)
Date: Mar 24 2016
Disclosure of authentication information, Disclosure of system information, Disclosure of user information, Execution of arbitrary code via network, Modification of system information, Modification of user information|
Fix Available: Yes Vendor Confirmed: Yes |
Version(s): prior to versions 1.8.10, 1.9.3|
Two vulnerabilities were reported in Django. A remote user can redirect the target user's browser to an arbitrary site. A remote user can determine valid usernames on the target system. A remote user can conduct cross-site scripting attacks.|
The django.utils.http.is_safe_url() function does not properly detect unsafe URLs. A remote user can create a URL that, when loaded by the target user, will redirect the target user's browser to an arbitrary site [CVE-2016-2512].
A remote user can also cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the Django software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Mark Striemer reported this vulnerability.
A remote user can send a specially crafted request to and monitor the time difference in the target server's response to determine valid usernames on the target system [CVE-2016-2513]. Usernames of users that have not logged in since the number of iterations in PBKDF2PasswordHasher() has increased are affected. After logging in, the timing difference is eliminated for that particular iteration increase.
Sjoerd Job Postmus reported this vulnerability.
A remote user can cause the target user's browser to be redirected to an arbitrary web site.|
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the Django software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
A remote user can determine valid usernames on the target system.
Red Hat has issued a fix.|
The Red Hat advisories are available at:
Vendor URL: rhn.redhat.com/errata/RHSA-2016-0502.html (Links to External Site)
Access control error, Input validation error|
|Underlying OS: Linux (Red Hat Enterprise)|
|Underlying OS Comments: 6, 7|
This archive entry is a follow-up to the message listed below.|
Source Message Contents
Subject: [RHSA-2016:0502-01] Moderate: python-django security update|
-----BEGIN PGP SIGNED MESSAGE-----
Red Hat Security Advisory
Synopsis: Moderate: python-django security update
Advisory ID: RHSA-2016:0502-01
Product: Red Hat Enterprise Linux OpenStack Platform
Advisory URL: https://rhn.redhat.com/errata/RHSA-2016-0502.html
Issue date: 2016-03-24
CVE Names: CVE-2016-2512 CVE-2016-2513
An update for python-django is now available for Red Hat Enterprise Linux
OpenStack Platform 5.0 (Icehouse) for RHEL 6.
Red Hat Product Security has rated this update as having a security impact
of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which
gives a detailed severity rating, is available for each vulnerability from
the CVE link(s) in the References section.
2. Relevant releases/architectures:
Red Hat Enterprise Linux OpenStack Platform 5.0 for RHEL 6 - noarch
Django is a high-level Python Web framework that encourages rapid
development and a clean, pragmatic design. It focuses on automating as much
as possible and adhering to the DRY (Don't Repeat Yourself) principle.
* An open-redirect flaw was found in the way Django's
django.utils.http.is_safe_url() function filtered authentication URLs. An
attacker able to trick a victim into visiting a crafted URL could use this
flaw to redirect that victim to a malicious site. (CVE-2016-2512)
* A timing attack flaw was found in the way Django's PBKDF2PasswordHasher
performed password hashing. Passwords hashed with an older version of
PBKDF2PasswordHasher used less hashing iterations, and thus allowed an
attacker to enumerate existing users based on the time differences in the
login requests. (CVE-2016-2513)
Red Hat would like to thank the Django project for reporting these issues.
For details on how to apply this update, which includes the changes
described in this advisory, refer to:
5. Bugs fixed (https://bugzilla.redhat.com/):
1311431 - CVE-2016-2512 python-django: Malicious redirect and possible XSS attack via user-supplied redirect URLs containing basic auth
1311438 - CVE-2016-2513 python-django: User enumeration through timing difference on password hasher work factor upgrade
6. Package List:
Red Hat Enterprise Linux OpenStack Platform 5.0 for RHEL 6:
These packages are GPG signed by Red Hat for security. Our key and
details on how to verify the signature are available from
The Red Hat security contact is <email@example.com>. More contact
details at https://access.redhat.com/security/team/contact/
Copyright 2016 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
-----END PGP SIGNATURE-----
Enterprise-watch-list mailing list