Belkin Wemo-Enabled Crock-Pot Remote Control
##
# 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
prepend Msf::Exploit::Remote::AutoCheck
def initialize(info = {})
super(update_info(info,
'Name' => 'Belkin Wemo-Enabled Crock-Pot Remote Control',
'Description' => %q{
This module acts as a simple remote control for Belkin Wemo-enabled
Crock-Pots by implementing a subset of the functionality provided by the
Wemo App.
No vulnerabilities are exploited by this Metasploit module in any way.
},
'Author' => 'wvu',
'References' => [
['URL', 'http://web.archive.org/web/20180301171809/https://www.crock-pot.com/wemo-landing-page.html'],
['URL', 'https://www.belkin.com/us/support-article?articleNum=101177'],
['URL', 'http://www.wemo.com/']
],
'License' => MSF_LICENSE,
'Actions' => [
['Cook', 'Description' => 'Cook stuff'],
['Stop', 'Description' => 'Stop cooking']
],
'DefaultAction' => 'Cook',
'Notes' => {
'Stability' => [CRASH_SAFE],
'SideEffects' => [PHYSICAL_EFFECTS]
}
))
register_options([
Opt::RPORT(49152),
OptEnum.new('TEMP', [true, 'Temperature', 'Off', modes.keys]),
OptInt.new('TIME', [true, 'Cook time in minutes', 0])
])
register_advanced_options([
OptBool.new('DefangedMode', [true, 'Run in defanged mode', true])
])
end
def check
res = send_request_cgi(
'method' => 'GET',
'uri' => '/setup.xml'
)
if res && res.code == 200 && res.body.include?('urn:Belkin:device:')
if res.body.include?('urn:Belkin:device:crockpot:1')
vprint_good('Wemo-enabled Crock-Pot detected')
return Exploit::CheckCode::Appears
end
vprint_status('Wemo device detected, but it is not a Crock-Pot')
return Exploit::CheckCode::Detected
end
Exploit::CheckCode::Safe
end
def run
if datastore['DefangedMode']
print_error('Running in defanged mode')
return
end
case action.name
when 'Cook'
print_status("Cooking on #{datastore['TEMP']} for #{datastore['TIME']}m")
res = send_request_cook(datastore['TEMP'], datastore['TIME'])
when 'Stop'
print_status('Setting temperature to Off and cook time to 0m')
res = send_request_cook('Off', 0)
end
unless res && res.code == 200 && (time = res.get_xml_document.at('//time'))
print_error("Failed to #{action.name.downcase}, aborting!")
return
end
print_good("Cook time set to #{time.text}m")
end
def send_request_cook(temp, time)
send_request_cgi(
'method' => 'POST',
'uri' => '/upnp/control/basicevent1',
'ctype' => 'text/xml',
'headers' => {
'SOAPACTION' => '"urn:Belkin:service:basicevent:1#SetCrockpotState"'
},
'data' => generate_soap_xml(temp, time)
)
end
def generate_soap_xml(temp, time)
<<~EOF
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:SetCrockpotState xmlns:u="urn:Belkin:service:basicevent:1">
<mode>#{modes[temp]}</mode>
<time>#{time}</time>
</u:SetCrockpotState>
</s:Body>
</s:Envelope>
EOF
end
def modes
{
'Off' => 0,
'Warm' => 50,
'Low' => 51,
'High' => 52
}
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
28 Feb 2025 10:30Current
7.4High risk
Vulners AI Score7.4