TCExam Edit Cross-Site Scripting

From: research <>
To: 'full-disclosure' <>,'bugtraq' <>,,,'vuln' <>,,,,,
Subject: TCExam Edit Cross-Site Scripting

| 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: CVE-2012-4238
Impact: Medium
Vendor homepage:
Vendor notified: 06/08/2012
Vendor fixed: 06/08/2012
Credit: Chris Cooper of Reaction Information Security

This advisory is posted at:

Affected Products
======== ========

Confirmed in TCExam 11.3.007. Prior versions may also be affected.


The question_subject_id parameter on the tce_edit_answer.php page was found
to be subject to a cross-site scripting vulnerability. It was possible to
inject arbitrary Javascript code into the parameter which is passed into the
page content without sanitisation. 

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.


An attacker might entice users to follow a malicious URL, causing Javascript
code to execute in their browser, potentially stealing session cookies,
redirecting the user to a malicious URL or downloading malware onto their

Proof of Concept
===== == =======

Injecting the following Javascript code into a generic parameter on the
calendar page will trigger the vulnerability, causing the page to return a
Javascript alert box.


Example 1 Request:

t>&answer_question_id=7 HTTP/1.1
Cookie: PHPSESSID=db1fe2b665994ff76356e7a28abfa5df

Example 1 Response:

--- SNIP ---
;question_id=7" title="Question Management" class="xmlbutton">&lt; Question
--- 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 URL below for any updates:


Reaction Information Security 
Lombard House Business Centre,
Suite 117,
12-17 Upper Bridge Street,
Canterbury, Kent, CT1 2NF

Phone: +44 (0)1227 785050
Email: research () reactionis {dot} co {dot} uk

Copyright © 1995-2020 All rights reserved.