Lucene search
K

RunCMS <= 1.6 - Local File Inclusion Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 21 Views

RunCMS 1.6 Halloween & prior versions LFI & Modules Authorization Vulnerabilitie

Code

                                                ########################## 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 : [email protected]
######################## 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:
--------------------
+--&#62;Local File Inclusion (Remote Code Execution)

Code Snippet:

/include/common.php line#131-143

// ################# :: Register Globals Compatibility :: #################
$globals_test = @ini_get(&#39;register_globals&#39;);
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(&#39;_GLOBALS&#39;, FALSE);
}
else
{
   define(&#39;_GLOBALS&#39;, TRUE);
}

/include/common.php line#276-280

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

$xoopsOption[&#39;pagetype&#39;] is not defined by default, so it&#39;s possible for an attacker to define
it by both $_GET or $_POST methods to conduct Local file inclusion!
Furthermore RunCms doesn&#39;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

+--&#62;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

# milw0rm.com [2007-11-24]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation