Mobile Hacking Labs: IOT Connect Challenge

Mobile IoT Broadcast Receiver
Exploit a security flaw in the IOT Connect app's broadcast receiver to gain unauthorized control over connected devices.

Challenge

Exploit a security flaw in the IOT Connect app's broadcast receiver, allowing unauthorized users to activate the master switch and control all connected devices. The goal is to send a broadcast so that only authenticated users can trigger the master switch.

Step 1: Reconnaissance

Installed the app, started it, and used Drozer to map out the attack surface.

Drozer mapping

Step 2: Static Analysis

Step 3: Attempted Exploitation

run app.broadcast.send --action MASTER_ON

This returned an error: Wrong PIN!!

Step 4: Key Discovery

Step 5: Exploitation

Ran the following ADB command with the --ei flag to pass the key:

adb shell am broadcast -a MASTER_ON --ei key 345
Solved

🎉 Challenge Completed!

Successfully triggered the master switch, controlling all connected devices.

Flag Retrieved!

Back to Writeups