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
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.
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.
ATutor (Inclusive Design Institute) -
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.
Vulnerability discovered by Gjoko Krstic - <>
[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.
Zero Science Lab