TCExam Edit Cross-Site Scripting
TCExam 11.3.007 is subject to a cross-site scripting vulnerability. A 'question_subject_id' parameter is not sufficiently sanitised before being written to the tce_edit_answer.php page. An attacker could distribute a malicious URL to specific users as part of a spear-phishing campaign. Users following the link would trigger this vulnerability which could potentially steal session cookies, redirect the user to a malicious URL or download malware onto their machine.
- CVE number:
- Impact: Medium
- Vendor homepage: http://www.tcexam.org/
- Vendor notified: 06/08/2012
- Vendor fixed: 06/08/2012
- Credit: Chris Cooper and Joseph Sheridan of Reaction Information Security
Reaction Information Security is a leading independent pen test consultancy specialising in delivering the highest quality services including network pen testing and web application security testing. As a CESG CHECK Service Provider we are authorised to carry out penetration testing on classified government networks.
Confirmed in TCExam 11.3.007. Prior versions may also be affected.
The fact that the user must be authenticated as well as an administrator (permission level 5 or above) reduces the likelihood of a successful attack. However, the vulnerability could potentially be leveraged in a spear phishing attack, targeted at exam authors and administrators, to hijack their sessions.
"><script>alert(String.fromCharCode(120,115,115,116,101,115,116))</script> --- Example 1 Request: +----------------- GET /TCExam/admin/code/tce_edit_answer.php?subject_module_id=2&question_ subject_id=1"><script>alert(String.fromCharCode(120,115,115,116,101, 115,116))</script>&answer_question_id=7 HTTP/1.1 Host: 192.168.0.6 Referer: http://192.168.0.6/TCExam/admin/code/tce_edit_question.php Cookie: PHPSESSID=db1fe2b665994ff76356e7a28abfa5df --- Example 1 Response: +------------------ --- SNIP --- <a href="tce_edit_question.php?subject_module_id=2&question_subject _id=1"><script>alert(String.fromCharCode(120,115,115,116,101,115, 116))</script>&question_id=7" title="Question Management" class= "xmlbutton">< Question Management</a></span> --- SNIP ---
Upgrade to TCExam 11.3.008.
In addition to posting on the website, a text version of this notice has been posted to the following e-mail and Usenet news recipients.
- bugtraq () securityfocus com
- full-disclosure () lists grok org uk
Future updates of this advisory, if any, will be placed on the ReactionIS corporate website, but may or may not be actively announced on mailing lists or newsgroups. Users concerned about this problem are encouraged to check the current page for any updates.