Vulnerabilities > CVE-2017-7728 - Unspecified vulnerability in Ismartalarm Cubeone Firmware

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
ismartalarm
critical

Summary

On iSmartAlarm cube devices, there is authentication bypass leading to remote execution of commands (e.g., setting the alarm on/off), related to incorrect cryptography.

Vulnerable Configurations

Part Description Count
OS
Ismartalarm
1
Hardware
Ismartalarm
1

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/143368/ismartalarmcubeone-exec.txt
idPACKETSTORM:143368
last seen2017-07-15
published2017-07-14
reporterIlia Shnaidman
sourcehttps://packetstormsecurity.com/files/143368/iSmartAlarm-CubeOne-Remote-Command-Execution.html
titleiSmartAlarm CubeOne Remote Command Execution

Seebug

  • bulletinFamilyexploit
    description### Vendor: iSmartAlarm, inc. ### Product: iSmartAlarm cube - All iSmartAlarm is one of the leading IoT manufactures in the domain of smart alarm systems. It provides a fully integrated alarm system with siren, smart cameras and locks. It functions like any alarm system, but with the benefits of a connected device: alerts pop up on your phone, offering you full remote control via mobile app wherever you are. ### Vulnerability Type: Authentication Bypass ### CVE Reference: CVE-2017-7728 ### Security Issue: On iSmartAlarm cube devices, there is an authentication bypass. The vulnerability can lead to remote execution of alarm's commands; setting the alarm on/off and activating the alarm siren. ### Additional Information: * First the app and the cube authenticate by using sophisticated 4 way handshake. Looks like that: ``` App ISAT\x01\x00*3\x01\x00*7 Cube ISAT\x02\x00*3\x01\x00*3\x10\x00*3 + "Cube generated Secret Key" ``` * Encryption algorithm: With the "Secret key" and the IPU (encryption key) the app decrypts a key using XXTEA encryption algorithm (funny thing is that ismartalarm implementation is broken). After that, the algorithm takes the output of the XXTEA enc and then reverses the output. This is the "new key"! So now, we got the encryption key, and we can do whatever we want with the alarm. * The app sends command as follows to proceed with the authentication: ``` App ISAT\x03\x00*3\x01\x00*3\x10\x00*3 + "new key" Cube ISAT\x04\x00*3\x01\x00*3\x01\x00*3\x01 ``` * NOW WE ARE AUTHENTICATED. we can now send one of the following commands to the cube Disarming the alarm "Disarm mode": ``` ISATP\x00*3\x01\x00*3\x03\x00*3\x01\x002 Arming the alarm "Arm mode": ISATP\x00*3\x01\x00*3\x03\x00*3\x01\x000 Activate alarm's siren "Panic mode": ISATP\x00*3\x01\x00*3\x03\x00*3\x01\x003 ``` ### Attack Vectors: After authentication, using the above protocol will allow full control of the alarm. When iSmartAlarm's mobile app connected to the same network as the iSmartAlarm's cube, their authentication and then communication are made on port tcp/12345 in PLAIN TEXT. Obtaining encryption key is done by using CVE-2017-7726. After setting the MITM a POST request is made to the following api: https://api.ismartalarm.com:8443/api/GetIpuEnr.ashx From there an attacker can obtain the encryption key. After obtaining the encryption key, using the above protocol will allow an attacker a full control over the alarm system.
    idSSV:97273
    last seen2018-06-26
    modified2018-05-08
    published2018-05-08
    reporterMy Seebug
    sourcehttps://www.seebug.org/vuldb/ssvid-97273
    titleAuthentication Bypass allows alarm's commands execution in iSmartAlarm(CVE-2017-7728)
  • bulletinFamilyexploit
    description### Vendor: iSmartAlarm, inc. ### Product: iSmartAlarm cube - All iSmartAlarm is one of the leading IoT manufactures in the domain of smart alarm systems. It provides a fully integrated alarm system with siren, smart cameras and locks. It functions like any alarm system, but with the benefits of a connected device: alerts pop up on your phone, offering you full remote control via mobile app wherever you are. ### Vulnerability Type: Denial of Service ### CVE Reference: CVE-2017-7730 ### Security Issue: iSmartAlarm cube is vulnereable to Denial of Service attack. Sending a SYN flood on port tcp/12345 will freeze the iSmartAlarm's cube and it will stop responding. The cube will stop operating and be frozen until the flood will stop. During the flood, the user won't be able to turn on/off the cube, and all of the cube's functionality will be unresponsive. ### Attack Vectors: Sending a Syn flood on port 12345 inside the LAN will disable cube functionality. PoC: ``` hping --flood -S -p 12345 <iSmartAlarm's cube ip> ``` ### Disclosure Timeline: * Jan 30, 2017: Initial contact to vendor * Feb 1, 2017: Vendor replied, requesting details * Feb 2, 2017: Disclosure to vendor * Apr 12, 2017: After vendor didn't replied, I've approached CERT * Apr 13, 2017: Confirmed receipt by CERT and assigning CVEs * July 05, 2017: Public disclousre
    idSSV:97279
    last seen2018-06-26
    modified2018-05-09
    published2018-05-09
    reporterMy Seebug
    titleDenial of Service in iSmartAlarm(CVE-2017-7728)