Description
luci-app-tailscale-community contains a command injection vulnerability in the tailscale.do_login RPC method that allows authenticated users to execute arbitrary commands as root. The vulnerability exists because user-controlled loginserver and loginserver_authkey parameters are improperly quoted within a double-quoted shell command, allowing shell substitutions like $() to be evaluated by the outer shell before argument processing.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version
Credits
lujie (@lujiefsi)
References
github.com/...t/luci/security/advisories/GHSA-xwc5-mx58-rh35
github.com/...t/luci/security/advisories/GHSA-xwc5-mx58-rh35 (GitHub Security Advisory (GHSA-xwc5-mx58-rh35))
www.vulncheck.com/...nd-injection-via-tailscale-do-login-rpc (VulnCheck Advisory: luci-app-tailscale-community - Command Injection via tailscale.do_login RPC)