MediaWiki < 1.3.13 / 1.4.5 / 1.5.0 alpha2 Page Template Inclusions HTML Attributes XSS

medium Nessus Plugin ID 18430

Synopsis

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

Description

According to its self-reported version number, the installation of MediaWiki running on the remote host is affected by a cross-site scripting vulnerability due to a failure to sanitize user-supplied input passed to certain HTML attributes when including a template inside a style directive when editing an entry. An attacker can exploit this flaw to inject arbitrary HTML and script code to be executed by a user's browser within the context of an affected site.

Solution

Upgrade to MediaWiki 1.3.13 or later if using 1.3 legacy series;
otherwise, upgrade to 1.4.5 or later.

See Also

https://phabricator.wikimedia.org/T4304

Plugin Details

Severity: Medium

ID: 18430

File Name: mediawiki_page_template_xss.nasl

Version: 1.22

Type: remote

Published: 6/7/2005

Updated: 6/5/2024

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Low

Score: 3.0

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, Settings/ParanoidReport, installed_sw/MediaWiki

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 6/3/2005

Reference Information

CVE: CVE-2005-1888

BID: 13861

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