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.
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
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
Solution:
Versions 1.3.4 and newer are reported to be fixed.
Moodle moodle 1.1.1
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.2
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.2.1
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.3
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.3.1
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.3.2
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
Moodle moodle 1.3.3
-
Moodle moodle-1.3.4.tgz
http://moodle.org/download.php/sourceforge/moodle-1.3.4.tgz
References
Moodle 'post.php' Cross-Site Scripting Vulnerability
References:
References:
- Moodle Home Page (Moodle)
- Moodle Release Notes (Moodle)
- xss in moodle (post.php) (Javier Ubilla Brenni
)