mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-10 03:08:29 +08:00
- Run ssh via exec.Command argv instead of "bash -c" string interpolation, so user-supplied fields can no longer escape into local shell commands on the webconsole server - Quote every interpolated value (env, command, args) as a POSIX shell word, so they stay literal data on the remote shell - Validate username charset and limit target_ip to climc pod or container - Add unit tests covering injection payloads Co-authored-by: Qiu Jian <qiujian@yunionyun.com> Co-authored-by: Claude <noreply@anthropic.com>