ATutor 2.0.2 Multiple Remote Vulnerabilities (SQLi/XSS/PD)

Title: ATutor 2.0.2 Multiple Remote Vulnerabilities (SQLi/XSS/PD)
Advisory ID: ZSL-2011-5036
Type: Remote
Impact: Exposure of System Information, Exposure of Sensitive Information, Manipulation of Data, Cross-Site Scripting
Risk: (3/5)
Release Date: 06.08.2011
Summary
ATutor is an Open Source Web-based Learning Content Management System (LCMS) designed with accessibility and adaptability in mind. Educators can quickly assemble, package, and redistribute Web-based instructional content, easily retrieve and import prepackaged content, and conduct their courses online.
Description
ATutor suffers from sql injection, cross-site scripting and path disclosure vulnerabilities.

The XSS issue is triggered when input passed via the 'search_friends_HASH' POST parameter, where HASH is the value generated by the 'rand_key' parameter, to the '/mods/_standard/social/index_public.php' script is not properly sanitised before being returned to the user.

The PD issues can be triggered by the cookie variable 'ATutorID' when setting random value or none in various scripts.

The SQLi issue can be triggered by 'p_course', 'name' and 'value' parameters in '/mods/_standard/social/set_prefs.php' script.

Theese issues can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site, displaying the full installation path in an error report and to manipulate SQL queries by injecting arbitrary SQL code.
Vendor
ATutor (Inclusive Design Institute) - http://www.atutor.ca
Affected Version
2.0.2 (build r10589)
Tested On
Microsoft Windows XP Professional SP3 (EN)
Apache 2.2.14 (Win32)
PHP 5.3.1
MySQL 5.1.41
Vendor Status
[03.08.2011] Submited vulnerability details to vendor's bug tracking system.
[05.08.2011] No reaction from vendor.
[06.08.2011] Public security advisory released.
[11.08.2011] Vendor releases fix.
PoC
atutor_mv.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] http://atutor.ca/atutor/mantis/view.php?id=4805
[2] http://securityreason.com/wlb_show/WLB-2011080042
[3] http://www.exploit-db.com/exploits/17631/
[4] http://packetstormsecurity.org/files/103764
[5] http://www.securityfocus.com/bid/49057
[6] http://xforce.iss.net/xforce/xfdb/69086
[7] http://xforce.iss.net/xforce/xfdb/69088
Changelog
[06.08.2011] - Initial release
[08.08.2011] - Added reference [4] and [5]
[11.08.2011] - Added reference [6] and [7]
[11.08.2011] - Added vendor status.
Contact
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk