Django Administration Application Login Form XSS

This script is Copyright (C) 2008-2011 Tenable Network Security, Inc.


Synopsis :

The remote web server uses a web framework that is affected by a
cross-site scripting vulnerability.

Description :

The remote host is using Django, a high-level Python web framework
designed for rapid development of database-driven websites.

The administration application included with the version of Django
installed on the remote host fails to sanitize the URL before using it
to generate dynamic HTML output. An attacker may be able to leverage
this to inject arbitrary HTML and script code into a user's browser to
be executed within the security context of the affected site.

See also :

http://www.djangoproject.com/weblog/2008/may/14/security/

Solution :

Upgrade to Django version 0.96.2 / 0.95.3 / 0.91.2 or later.

Risk factor :

Medium / CVSS Base Score : 4.3
(CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N)
CVSS Temporal Score : 3.6
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: CGI abuses : XSS

Nessus Plugin ID: 32319 (django_admin_xss.nasl)

Bugtraq ID: 29209

CVE ID: CVE-2008-2302