Moodle 'PHPCOVERAGE_HOME' Parameter XSS

medium Nessus Plugin ID 51852

Synopsis

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

Description

The version of Moodle installed on the remote host does not sanitize user-supplied input to the 'PHPCOVERAGE_HOME' parameter of the 'lib/spikephpcoverage/src/phpcoverage.remote.top.inc.php' script before using it to generate dynamic HTML.

An attacker can 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.

Solution

Upgrade to Moodle 2.0.2 or later.

See Also

http://www.nessus.org/u?6d7a5df4

Plugin Details

Severity: Medium

ID: 51852

File Name: moodle_phpcoverage_home_xss.nasl

Version: 1.19

Type: remote

Published: 2/2/2011

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 4.1

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

Vulnerability Information

CPE: cpe:/a:moodle:moodle

Required KB Items: www/PHP, installed_sw/Moodle

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/2/2011

Vulnerability Publication Date: 1/27/2011

Reference Information

BID: 46085

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