Moodle 'post.php' Cross-Site Scripting Vulnerability

BID:10884

Info

Moodle 'post.php' Cross-Site Scripting Vulnerability

Bugtraq ID: 10884
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Aug 06 2004 12:00AM
Updated: Aug 06 2004 12:00AM
Credit: Javier Ubilla and Ariel are credited for the discovery of this vulnerability.
Vulnerable: Moodle moodle 1.3.3
Moodle moodle 1.3.2
Moodle moodle 1.3.1
Moodle moodle 1.3
Moodle moodle 1.2.1
Moodle moodle 1.2
Moodle moodle 1.1.1
Not Vulnerable: Moodle moodle 1.3.4

Discussion

Moodle 'post.php' Cross-Site Scripting Vulnerability

It is reported that Moodle is vulnerable to a cross-site scripting vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied input prior to including it in dynamic web content.

This issue could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and would allow for theft of cookie-based authentication credentials or other attacks.

Versions of Moodle prior to 1.3.4 are reported susceptible to this vulnerability.

Exploit / POC

Moodle 'post.php' Cross-Site Scripting Vulnerability

No exploit is required. A proof-of-concept example was provided:

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

Solution / Fix

Moodle 'post.php' Cross-Site Scripting Vulnerability

Solution:
Versions 1.3.4 and newer are reported to be fixed.


Moodle moodle 1.1.1

Moodle moodle 1.2

Moodle moodle 1.2.1

Moodle moodle 1.3

Moodle moodle 1.3.1

Moodle moodle 1.3.2

Moodle moodle 1.3.3

References

Moodle 'post.php' Cross-Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report