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.20

Type: remote

Published: 2/2/2011

Updated: 6/6/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Enable CGI Scanning: true

Vulnerability Information

CPE: cpe:/a:moodle:moodle

Required KB Items: www/PHP, installed_sw/Moodle

Excluded KB Items: Settings/disable_cgi_scanning

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