MODx login.php 'username' Parameter XSS

This script is Copyright (C) 2010-2014 Tenable Network Security, Inc.


Synopsis :

The remote web server hosts an application that is prone to a cross-
site scripting attack.

Description :

The installed version of MODx fails to adequately sanitize input
passed to the 'username' parameter in the 'login.php' script before
using it to generate dynamic HTML content.

An unauthenticated, remote attacker may be able to leverage this issue
to inject arbitrary HTML or script code into a user's browser to be
executed within the security context of the affected site.

Although Nessus has not checked for it, the installed version is also
likely to be affected by another cross-site scripting vulnerability
involving the 'email' parameter.

See also :

http://www.zeroscience.mk/en/vulnerabilities/ZSL-2010-4982.php
http://bugs.modx.com/issues/2918

Solution :

Upgrade to 2.0.5-pl 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 : 4.1
(CVSS2#E:F/RL:U/RC:ND)
Public Exploit Available : true

Family: CGI abuses : XSS

Nessus Plugin ID: 51090 ()

Bugtraq ID: 45215

CVE ID: