Description
luci-proto-openvpn through 0.11.1, fixed in commit e4ff45e, contains a command injection vulnerability in the generateKey ubus method where the cl_meta parameter is interpolated into a shell command without proper escaping or quoting. An authenticated LuCI user with OpenVPN protocol configuration access can inject arbitrary shell metacharacters into cl_meta to execute commands as root via the popen function.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version
e4ff45ecbc6ad212951815c8c99b2749fbd7de6b (git)
Credits
George Chen
References
github.com/...t/luci/security/advisories/GHSA-pm9w-522m-8rrh
github.com/...t/luci/security/advisories/GHSA-pm9w-522m-8rrh (GitHub Security Advisory (GHSA-pm9w-522m-8rrh))
github.com/...ommit/e4ff45ecbc6ad212951815c8c99b2749fbd7de6b (Patch Commit)
www.vulncheck.com/...on-via-cl-meta-parameter-in-generatekey (VulnCheck Advisory: luci-proto-openvpn - Command Injection via cl_meta Parameter in generateKey)