Files
Shelly-Loqed-Touch/Document0-Initial_Information_Gathering.md
T
2026-10-23 08:57:05 +02:00

7.1 KiB

DOCUMENT 0 - INITIAL INFORMATION GATHERING


Installation of Custom Software

TODO:

  • Check if CFW is installable

0.1 Services Running on the Device

0.2 Hardware and Software Specifications

0.3 Known Vulnerabilities / Problems / Hacks

No known vulnerabilities or hacks were found during research or on CVE.

Common issues for consumers include:

  • Touch display glitches/freezing
  • Fast battery depletion
  • Insufficient motor power/jams
  • No response from lock/bridge disconnections

0.4 Collecting APKs

1.1 && 2.1 Unpacking

The packaging contains:

  • A user and safety guide
    • The guide explains installation without any pictures but uses pictures to explain the app setup - why?
    • Video installation guide
  • 8 AA batteries for power supply
  • An outdoor module (touch)
  • Mounting HW (screws, rings, screwdrivers, ...)
  • A lock cylinder
  • A bridge
  • A motor module
  • An indoor module (the lock)
  • The shell

The lock is surrounded by a plastic packaging with molds for eah component. Within the box it is kept in place with some cardboard. The box itself is held shut by a small magnet.

Contents of the box

1.2 || 2.2 Outer Inspection

Outer Module

The outer module is a touch sensor surrounded by a plastic shell with two screws and one cable inside.

Back of the touch module

During installation, the cable is supposed to connect to the motor module.

Cable position of the touch module

Inner Module

The inner module includes the motor module, which is connected using cables to:

  • the power supply
  • the touch module
The inner module including the motor module

Unopened, it is surrounded by a metal shell which can easily be removed by pulling a plastic strap, as this is necessary during installation.

Bridge

The bridge is to be placed within 3 meters of the lock. It is used to connect the lock to the app. It features a reset button.

The bridge

1.3 && 1.4 Open Casing / HW Inspection

Bridge

The plastic enclosure of the bridge can be opened by unscrewing two screws, revealingthe PCB.

What you can spot immediately is:

  • UART
  • ESP32 WROVER B
PCB inside the bridge

Under the PCB is HW for the power supply.

Power supply beneath PCB

Outer Module

There are three screws on the back of the touch module, however, it's additonally glued together. It can't be opened without being (probably) permanently damaged.

Back of the touch module with screws removed

Inner Module

As I'm working with an already opened device, I'm not interiley sure hw many screws were intially needed to open the motor module, but I'm assuming it were four. After unscrewing these the plastic shell can be removed by gently wiggling it until it comes loose.

Inside of the motor module

Once again you can immedatiely spot UART.

After unplugging all cables, the PCB can be leveraged out of the shell with a flat screwdriver, without causing any damage.

Other side of the motor module PCB

Here you can see:

  • UART
  • I^2C
  • SoC and access pins
  • A buzzer and a button

1.5 Software Components from Firmware Analysis

1.6 Collect "Fresh" Firmware Dump

The device has been tampered with before, therefore there is no fresh dump available.

1.7 && 2.3 Initial setup

The initial setup is done using the Shelly App. The capture can be found here.

Unsure which IP address is most relevant, here are all Shelly-like or LOQED-like addresses:

  • 34.62.47.252: changelog-backend.shelly.cloud0
  • 34.95.90.149: control.shelly.cloud
  • 104.155.32.247: shelly-120-eu.shelly.cloud
  • 34.155.200.196: integrations.loqed.com
  • 35.205.173.252: app-ratings.shelly.cloud, paypal.shelly.cloud, shelly-infra1-eu.shelly.cloud
  • 34.79.5.199: shelly-101-eu.shelly.cloud
  • 35.241.201.25: repo.shelly.cloud

For the PreTester analysis, I chose control.shelly.cloud, as I suspect the lock to communicate to a cloud via the bridge. As the bridge has a built in ESP32 supporting WiFi, I suspect the communication looks as follows:

PlantUML sequence diagram of suspected communication flow

The PreTester report didn't find anything unusual. It reported no critical or high findings.

Old Initial Setup Capture

You can also find an older initial setup capture made by Manu here. I tested this in the PreTester as well using integrations.loqed.com, as this seemed to be the most present IP in the capture.

The report can be found here. Once again, it reported no critical or high findings.

The old init capture supposedly was the first real fresh setup. As mentioned, the lock has been tempered with before.

2.6 Port Scan

I used the PreTester to probe all URLs and endpoints, here are some (interesting) findings:

While most of ports are common for HTTPS and SSH, there are a few interesting ones:

  • 31234 onshelly-101-eu.shelly.cloud: Nmap scan revealed no more information
  • 6113 on shelly-120-eu.shelly.cloud: Nmap scan found ports 6115, 6022, 8007, 6114
    • It may be important to note that scan took significantly more time (almost 1h) and was eventually aborted
    • #TODO: RESCAN
  • 9443 on shelly-infra1-eu.shelly.cloud: widely recognized as an alternative or administrative HTTPS port
  • 8883 on mqtt.production.loqed.com: official standard port designated for MQTT over TLS (MQTTS)

Some playing around with Metasploit's check on these 2 cloud endpoints couldn't find anything either.

2.7 BLE

I ran ToothFairy on the lock. It's advertising name is "Loqed Inside" and it uses a fixed MAC address FF:EC:EE:E7:32:E5.

I obtained the GATT table and a very incomplete test report, due to a lack of hardware.

However, ToothFairy labelled WRLS-FUZZ-002 as FAIL, due to the target not recovering after malformed packets were sent.

1.8 Collect Firmware Dump of Firmware after initial Setup

Bridge

Outer Module

1.9 && 2.4 Firmware Update

1.10 Collect Updated Firmware Dump

Bridge

Outer Module

1.11 Collect Firmware Dump after Factory Reset

Bridge

Outer Module

1.12 (Optional for now) Instantiate Device Model

1.13 Collect App APKs

2.5 Inspection of Device During Normal Usage