Cudy TR3000 root command execution in WireGuard JSON-RPC export
Shenzhen Cudy Technology Co., Ltd. TR3000 1.0
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Shenzhen Cudy Technology Co., Ltd. TR3000 1.0 |
|
|
Original description
Cudy TR3000 before 2.5.42 contains a command injection vulnerability that allows authenticated administrators to execute commands as root by storing a malicious WireGuard private key. Attackers can save a private_key containing $() shell substitution and call the vpn.export_conf method on the /cgi-bin/luci/rpc/app JSON-RPC endpoint, which passes the key to a wg pubkey shell command.
From the CVE record · VulnCheck