SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   Django Vendors:   djangoproject.com
(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
CVE Reference:   CVE-2016-2512, CVE-2016-2513   (Links to External Site)
Date:  Mar 24 2016
Impact:   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
Description:   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.

Impact:   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.

Solution:   Red Hat has issued a fix.

The Red Hat advisories are available at:

https://rhn.redhat.com/errata/RHSA-2016-0502.html
https://rhn.redhat.com/errata/RHSA-2016-0503.html
https://rhn.redhat.com/errata/RHSA-2016-0504.html
https://rhn.redhat.com/errata/RHSA-2016-0505.html
https://rhn.redhat.com/errata/RHSA-2016-0506.html

Vendor URL:  rhn.redhat.com/errata/RHSA-2016-0502.html (Links to External Site)
Cause:   Access control error, Input validation error
Underlying OS:  Linux (Red Hat Enterprise)
Underlying OS Comments:  6, 7

Message History:   This archive entry is a follow-up to the message listed below.
Mar 2 2016 Django Bugs Let Remote Users Conduct Redirect and Cross-Site Scripting Attacks and Determine Valid Usernames



 Source Message Contents

Subject:  [RHSA-2016:0502-01] Moderate: python-django security update

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   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 
=====================================================================

1. Summary:

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

3. Description:

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.

Security Fix(es):

* 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.

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

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:

Source:
python-django-1.6.11-5.el6ost.src.rpm

noarch:
python-django-1.6.11-5.el6ost.noarch.rpm
python-django-bash-completion-1.6.11-5.el6ost.noarch.rpm
python-django-doc-1.6.11-5.el6ost.noarch.rpm

These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/

7. References:

https://access.redhat.com/security/cve/CVE-2016-2512
https://access.redhat.com/security/cve/CVE-2016-2513
https://access.redhat.com/security/updates/classification/#moderate

8. Contact:

The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2016 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFW8z+6XlSAg2UNWIIRAr7aAKCwJi+JiLoOUoZOXwWkFF6Hne4yuwCfQPsZ
eHLLE2mOD0uBD6PDjkX6u4U=
=qC4D
-----END PGP SIGNATURE-----


-- 
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC