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

Elxis CMS eForum 1.1 File Upload

Elxis CMS eForum 1.1 File Upload
Posted Apr 11, 2011
Authored by Demetris Papapetrou, QSecure | Site qsecure.com.cy

Elxis CMS eForum component version 1.1 suffers from an arbitrary file upload vulnerability.

tags | exploit, arbitrary, file upload
SHA-256 | 58b2a6b909a034aeee02869758ffbf3d70980bbfab04f276db39ed65066e18c7

Elxis CMS eForum 1.1 File Upload

Change Mirror Download
==========================================================================
Elxis CMS component eForum v1.1 - Arbitary File Upload Vulnerability
==========================================================================

Software: eForum v1.1 (Elxis CMS component)
Vendor: http://www.isopensource.com/
Vuln Type: Arbitary File Upload
Remote: Yes
Local: No
Discovered by: QSecure and Demetris Papapetrou
Website: http://www.qsecure.com.cy
Discovered: 09/03/2011
Reported: 06/04/2011
Fixed: 07/04/2011 (eForum v1.1 patched)
Disclosed: 09/04/2011
Vendor's Response: http://forum.elxis.org/index.php?topic=5144.msg39714#msg39714
Vulnerability Reference: http://www.qsecure.com.cy/advisories/arbitary_file_upload_in_elxis_cms_eforum.html

VULNERABILITY DESCRIPTION:
==========================
The script "/eforum.php" is prone to an arbitrary file-upload vulnerability because it fails to properly filter dangerous file extensions.

An attacker can exploit this issue to upload an arbitrary remote file (e.g. .phtml) containing malicious PHP code and to execute it in the context of the webserver process. This may allow the attacker to compromise the application and the underlying system.


VULNERABILITY DETAILS:
======================

Form Details:
--------------
Id: eforumpostform
Name: eforumpostform
Method: POST
Action: http://host/path_to_elxis_cms/index2.php

INDEX NAME TYPE VALUE
0 title text Re:Test Port
1 icon select
2 btncolor select
3 message textarea test
4 notify checkbox 1
5 efattachment[] file /tmp/phpinfo.phtml
6 eftplurl hidden http://host/path_to_elxis_cms/components/com_eforum/template/blue
7 option hidden com_eforum
8 task hidden save
9 bid hidden 2
10 parent hidden 5
11 id hidden 0


Arbitrary File Upload Location:
-------------------------------
http://host/path_to_elxis_cms/components/com_eforum/upload/


Vulnerable Code:
----------------
File Location: /path_to_elxis_cms/components/com_eforum/
File Name: eforum.php

[code]
if (isset($_FILES)) { //upload attachments
if (isset($_FILES['efattachment']) && is_array($_FILES['efattachment']) && isset($_FILES['efattachment']['name']) && (count($_FILES['efattachment']['name']) > 0)) {
$invalidFileTypes = array('php', 'php3', 'php4', 'php5', 'exe', 'dll', 'so', 'htaccess'); <-- File extensions filter
$uploaddir = $eforum->path.'/upload';
$upfiles = $_FILES['efattachment'];
foreach ($upfiles['name'] as $idx => $upname) {
if ($upname != '') {
$source = $upfiles['tmp_name'][$idx];
if (is_uploaded_file($source)) {
if (in_array($fmanager->FileExt($upname), $invalidFileTypes)) { continue; }
[/code]
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    18 Files
  • 14
    Aug 14th
    50 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 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