Skip to content
Leaked secrets Write-up Advanced

From Temu to Root: Breaking the Jooan C9TS

The Cam720 Android app contains a hidden vendor diagnosis mode that sends a hardcoded admin credential and a cloud-issued authorisation code to the camera over plain HTTP, and the app's AES key and IV are hardcoded so all production endpoints can be decrypted. An attacker who decompiles the app can recover the shared credential and the diagnosis protocol, and the author used this to reach a diagnostic shell on the camera.

rahulr.in

Published on rahulr.in

As my yearly procrastination activity, I decided to finally dive into hardware hacking. I stocked up on the essentials: a soldering iron, a heatgun, a multimeter, some jumper wires, a Bus Pirate (which I bought for no apparent reason, as I could have just used my Flipper Zero for UART), and a CH341 chip programmer.

Rahul R, on rahulr.in

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the app hardcodes a shared admin credential and a fixed AES key/IV, and the camera's local command endpoint accepts that static credential over plain HTTP without per-device secrets.

Impact

Anyone who decompiles the app can recover the shared admin credential and the diagnosis protocol, and because the local command is sent over plain HTTP an attacker on the same network could observe or replay it to enable diagnostic mode on the camera.

What the attacker needed

Decompiled Cam720 APK; phone and camera on same LAN; cloud account for authorisation code

The fix

The app should not ship a shared static admin credential or a fixed AES key/IV; each device should use unique per-device secrets and the local command channel should use TLS.

How it was found

  1. Decompile the Cam720 APK and grep for the firmware string to find the update package.
  2. Grep for the diagnosis string to find the hidden DiagnosisDataManager class.
  3. Decrypt the Base64 endpoint blobs using the hardcoded AES key and IV.
  4. Launch the non-exported diagnosis activity directly with adb to reach the permission notice and a 6-digit code.
  5. Request an authorisation code from the cloud netty endpoint for the device.
  6. Send a SetDiagMode command to the camera over LAN HTTP with the admin credential and the authorisation code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A cheap IP camera's phone app was taken apart to see how it talks to the camera. The app contained a secret maintenance mode with a username and password that are the same on every camera and are written directly into the app, so anyone who unpacks the app can learn them. The app also sent this over unencrypted HTTP on the local network, so someone on the same Wi-Fi could watch or copy the request.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.