65052 : TCExam /admin/code/tce_functions_tcecode_editor.php Arbitrary File Upload
Printer | http://osvdb.org/65052 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
11 1435 almost 3 years ago 6 months ago 5 times 70%

Timeline

Disclosure Date
2010-06-02

Description

TCExam contains a flaw that may allow a remote attacker to execute arbitrary code. The issue is due to the 'admin/code/tce_functions_tcecode_editor.php' script allowing the upload of files with arbitrary extensions to a folder inside the webroot. This may allow an attacker to upload arbitrary files, and for example, execute arbitrary PHP code.

Classification

Location: Remote / Network Access
Attack Type: Input Manipulation
Impact: Loss of Integrity
Solution: Upgrade
Exploit: Exploit Public
Disclosure: Uncoordinated Disclosure
OSVDB: Web Related

Solution

Upgrade to version 10.1.012 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

Unknown or Incomplete

References

Credit

Unknown or Incomplete

CVSSv2 Score

CVSSv2 Base Score = 6.8
Source: nvd.nist.gov | Generated: 2010-06-04 | Disagree?

Access_vector_2 Access_complexity_1 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Comments

Anonymous - 2010/06/12 11:21:14

This vulnerability has been fixed on TCExam 10.1.011.

Now you can upload only the file types listed on K_ALLOWED_UPLOAD_EXTENSIONS constant at admin/config/tce_config.php.

Anyway, the vulnerability description is WRONG because only TCExam administrators may upload files to the system (you can upload files only from administration area - that should be password protected - and if you have an editor level). This means that only a TCExam administrator can hack himself!

Please note that I haven't received any notice about this vulnerability, I've just discovered it casually and immediately fixed. I think that you should always contact authors before publishing a security advisory.

jkouns - 2010/06/12 13:20:05

John Leitch said...
Take another look at the code I posted. No authentication is performed. This vulnerability can be exploited without logging in, and this has been verified by a 3rd party.

Note that Secunia rated this Highly Critical:

http://secunia.com/advisories/40011/

And regarding disclosure, I do this in my free time and given the number of vendors who've ignored me in the past I've decided to take an immediate, full disclosure route.

* source - http://cross-site-scripting.blogspot.com/2010/06/tcexam-101006-arbitrary-upload.html

Anonymous - 2010/06/13 04:27:35

Note that if you correctly install TCExam, you must set a webserver-level password for the entire administration area.
Anyway, I've completely fixed the authentication issue on TCExam 10.1.012.


The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2002 - 2013 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use