exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

TCExam 11.3.007 Cross Site Scripting

TCExam 11.3.007 Cross Site Scripting
Posted Aug 14, 2012
Authored by Chris Cooper | Site reactionpenetrationtesting.co.uk

TCExam version 11.3.007 suffers from a cross site scripting vulnerability.

tags | exploit, xss
advisories | CVE-2012-4238
SHA-256 | c2df81fe1434df8351dd6026e93abcd6a2dd042f7a15ef09a4566b27505d3ded

TCExam 11.3.007 Cross Site Scripting

Change Mirror Download
/----------------------------------\
| TCExam Edit Cross-Site Scripting |
\----------------------------------/


Summary
=======

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: http://www.tcexam.org/
Vendor notified: 06/08/2012
Vendor fixed: 06/08/2012
Credit: Chris Cooper of Reaction Information Security
(http://www.reactionis.co.uk/)

This advisory is posted at:

http://www.reactionpenetrationtesting.co.uk/tcexam-cross-site-scripting.html


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

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


Details
=======

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.


Impact
======

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
machine.


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.

"><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))</scrip
t>&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>&amp
;question_id=7" title="Question Management" class="xmlbutton">< Question
Management</a></span>
--- SNIP ---


Solution
========

Upgrade to TCExam 11.3.008.


Distribution
============

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:



http://www.reactionpenetrationtesting.co.uk/tcexam-cross-site-scripting.html

============================================================================
==

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
Web: http://www.reactionpenetrationtesting.co.uk
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close