Cudy TR3000 root command execution in OpenVPN config upload
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 in luci/model/cbi/vpn/openvpn/client.lua, which embeds the shellquote()-quoted remote host token of an uploaded OpenVPN configuration inside an already single-quoted sed program run by os.execute(), so the nested quotes terminate the outer quote. Authenticated administrators can upload an .ovpn file whose remote host token contains a semicolon to execute arbitrary commands as root.
From the CVE record · VulnCheck