MediaWiki index.php 'uselang' Parameter XSS

This script is Copyright (C) 2012-2015 Tenable Network Security, Inc.


Synopsis :

The remote web server hosts a PHP script that is affected by a
cross-site scripting vulnerability.

Description :

The version of MediaWiki running on the remote host is affected by a
cross-site scripting vulnerability due to a failure to properly
sanitize user-supplied input to the 'uselang' parameter in the
'index.php' script. An attacker can exploit 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 :

https://bugzilla.wikimedia.org/show_bug.cgi?id=36938
http://www.nessus.org/u?1e95f992
http://www.nessus.org/u?bf5ace4f
http://www.nessus.org/u?42466623

Solution :

Upgrade to MediaWiki 1.17.5 / 1.18.4 / 1.19.1 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: 62368 ()

Bugtraq ID: 53998

CVE ID: CVE-2012-2698