MediaWiki index.php 'uselang' Parameter XSS

medium Nessus Plugin ID 62368

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.

Solution

Upgrade to MediaWiki 1.17.5 / 1.18.4 / 1.19.1 or later.

See Also

https://phabricator.wikimedia.org/T38938

http://www.nessus.org/u?ec43a3b3

http://www.nessus.org/u?41bdadd2

http://www.nessus.org/u?8866aaa6

Plugin Details

Severity: Medium

ID: 62368

File Name: mediawiki_uselang_xss.nasl

Version: 1.10

Type: remote

Published: 9/28/2012

Updated: 6/5/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: cpe:/a:mediawiki:mediawiki

Required KB Items: www/PHP, installed_sw/MediaWiki

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 6/13/2012

Vulnerability Publication Date: 6/13/2012

Reference Information

CVE: CVE-2012-2698

BID: 53998

CWE: 20, 442, 629, 711, 712, 722, 725, 74, 750, 751, 79, 800, 801, 809, 811, 864, 900, 928, 931, 990