Skip to content
RCE Advisory Intermediate CVE-2022-22140

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.

Carl Hurd Follow

Originally disclosed on Cisco Talos

Critical 9.6 View original

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.

Carl Hurd, on Cisco Talos

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

  1. Connect to the Wi-Fi network provided by the LinkHub Mesh.
  2. Send a crafted protobuffer message to port 9003 containing a malicious serialNum in an MxpManageList message.
  3. 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.

More by Carl Hurd

View all

49 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.