TCL LinkHub Mesh Wifi confsrv ucloud_add_node OS command injection vulnerability
The confsrv service in TCL LinkHub Mesh Wi-Fi accepts protobuffer messages on port 9003 and passes the serialNum field directly to a system command without sanitisation. An attacker on the same Wi-Fi network can send a crafted packet to execute arbitrary commands on the device.
An os command injection vulnerability exists in the confsrv ucloudaddnode functionality of TCL LinkHub Mesh Wi-Fi MS1G0001.0014. A specially-crafted network packet can lead to arbitrary command execution.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The serialNum field from the protobuffer is passed directly into a system command without any escaping or validation.
Impact
An attacker on the same Wi-Fi network could execute arbitrary commands on the device, leading to full compromise.
What the attacker needed
Access to the LinkHub Mesh Wi-Fi network
How it was found
- Connect to the Wi-Fi network provided by the LinkHub Mesh.
- Send a crafted protobuffer message to port 9003 containing a malicious serialNum in an MxpManageList message.
- The message is routed to the confsrv handler ucloud_add_node, which uses the serialNum in a system command, executing the injected command.
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 report has not been written yet. The Original tab links to the source.
This is a command injection bug. The router takes a value from a network message and runs it as part of a system command without cleaning it first. Someone on the same Wi-Fi can send a message that makes the router run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.