MyDomoAtHome (MDAH) REST API Domoticz ISS Gateway 0.2.40 Information Disclosure  
Vendor: Emmanuel  
Product web page:  
Affected version: 0.2.40  
Summary: REST Gateway between Domoticz and Imperihome ISS. Domoticz is a home automation  
system with a pretty wide library of supported devices, ranging from weather stations to  
smoke detectors to remote controls, and a large number of additional third-party integrations  
are documented on the project's website. It is designed with an HTML5 frontend, making it  
accessible from desktop browsers and most modern smartphones, and is lightweight, running  
on many low-power devices like the Raspberry Pi.  
Desc: MyDomoAtHome REST API is affected by an information disclosure vulnerability due to  
improper access control enforcement. An unauthenticated remote attacker can exploit this,  
via a specially crafted request to gain access to sensitive information.  
Tested on: NodeJS: 10.15.0, 8.15.1, 8.15.0, 8.11.1, 8.9.4, 4.8.7, 4.2.2  
Webmanager/Engine: EJS  
Renderer: Express  
Vulnerability discovered by Gjoko 'LiquidWorm' Krstic  
Advisory ID: ZSL-2019-5555  
Advisory URL:  
Device Type string: DevCamera  
Param Key Description  
localjpegurl Local URL to the JPEG snapshot of the camera (Note : login/pass can be passed like this http://login:pass@url)  
localmjpegurl Local URL to the camera's MJPEG stream  
remotejpegurl Remote URL to the JPEG snapshot of the camera  
remotemjpegurl Remote URL to the camera's MJPEG stream  
PoC #1:  
root@kali:~/domoticz# curl -s |tail -c $((100+850))  
PoC #2:  
root@kali:~/domoticz# curl -s |tail -c $((200-22))