Moodle post.php reply Variable XSS

2004-08-06T01:51:01
ID OSVDB:8383
Type osvdb
Reporter Javier Ubilla Brenni(javierubilla@spymac.com)
Modified 2004-08-06T01:51:01

Description

Vulnerability Description

Moodle contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the "reply" variable upon submission to the "post.php" script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Solution Description

Upgrade to version 1.4 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

Moodle contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the "reply" variable upon submission to the "post.php" script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Manual Testing Notes

http://[victim]/moodle/mod/forum/post.php?reply=%3Cscript%3Ealert(document.cookie);%3C/script%3E

References:

Vendor URL: http://www.moodle.org/ Vendor Specific Advisory URL Secunia Advisory ID:12262 Mail List Post: http://archives.neohapsis.com/archives/bugtraq/2004-08/0093.html CVE-2004-1711