Moodle external.php badge Parameter XSS

This script is Copyright (C) 2013 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 Moodle installed on the remote host fails to properly
sanitize user-supplied input to the 'badge' parameter of the
'external.php' script. The application also fails to properly sanitize
serialized objects. An attacker can exploit these issues by crafting a
URL containing a serialized object that will inject arbitrary HTML or
script code in a users browser. By enticing a user to view this URL,
the attacker can exploit these flaws.

Note that the unserialization attack mentioned here can be used to
perform additional attacks
however, Nessus has only tested for a
cross-site scripting vulnerability.

See also :

http://www.securityfocus.com/archive/1/528652/30/0/threaded
https://moodle.org/mod/forum/discuss.php?d=238397
http://docs.moodle.org/dev/Moodle_2.5.2_release_notes

Solution :

Upgrade to version 2.5.2 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: 70023 ()

Bugtraq ID: 62412

CVE ID: CVE-2013-5674