Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Generic)  >   Django Vendors:
(Red Hat Issues Fix for OpenStack) Django Input Validation Flaws Permit Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1029348
SecurityTracker URL:
CVE Reference:   CVE-2013-6044   (Links to External Site)
Date:  Nov 14 2013
Impact:   Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): prior to versions 1.4.6, 1.5.2, 1.6 beta 2
Description:   Two vulnerabilities were reported in Django. A remote user can conduct cross-site scripting attacks.

The software does not properly filter HTML code from user-supplied input before displaying the input. A remote user can 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.

The 'URLField' of the administrative interface (django.contrib.admin) is affected.

Lukasz Langa reported this vulnerability.

The django.utils.http.is_safe_url() function is affected.

Nick Bruun reported this vulnerability.

Impact:   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.
Solution:   Red Hat has issued a fix for RedHat OpenStack.

The Red Hat advisory is available at:

Vendor URL: (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Red Hat Enterprise)

Message History:   This archive entry is a follow-up to the message listed below.
Aug 14 2013 Django Input Validation Flaws Permit Cross-Site Scripting Attacks

 Source Message Contents

Subject:  [RHSA-2013:1521-01] Moderate: python-django security update

Hash: SHA1

                   Red Hat Security Advisory

Synopsis:          Moderate: python-django security update
Advisory ID:       RHSA-2013:1521-01
Product:           Red Hat OpenStack
Advisory URL:
Issue date:        2013-11-14
CVE Names:         CVE-2013-4315 CVE-2013-6044 

1. Summary:

Updated python-django packages that fix two security issues are now
available for Red Hat OpenStack 3.0.

The Red Hat Security Response Team has rated this update as having moderate
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link in
the References section.

2. Relevant releases/architectures:

OpenStack 3 - 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.

It was discovered that the django.utils.http.is_safe_url() function
considered any URL that used a scheme other than HTTP or HTTPS (for
example, "javascript:") as safe. An attacker could potentially use this
flaw to perform cross-site scripting (XSS) attacks. (CVE-2013-6044)

A directory traversal flaw was found in Django's "ssi" template tag, which
takes a file path as input and outputs that file's contents. An attacker
able to alter templates that made use of the "ssi" tag on a site could use
this flaw to access any local files accessible to Django. (CVE-2013-4315)

Red Hat would like to thank James Bennett of Django for reporting

All python-django users are advised to upgrade to these updated packages,
which contain a backported patch to correct these issues.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at

5. Bugs fixed (

1004969 - CVE-2013-4315 python-django: directory traversal with "ssi" template tag
1016394 - CVE-2013-6044 python-django: xss in is_safe_url function

6. Package List:

OpenStack 3:



These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from

7. References:

8. Contact:

The Red Hat security contact is <>.  More contact
details at

Copyright 2013 Red Hat, Inc.
Version: GnuPG v1.4.4 (GNU/Linux)


Enterprise-watch-list mailing 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, LLC