mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-06 17:10:53 +08:00
The ssh console endpoint accepted a raw ip address in the URL path and dialed it directly with user provided credentials, so any authenticated user could use the webconsole service as an internal SSH proxy, port scanner and credential brute-forcer. Resolve the ip against hosts (access_ip) and servers (ip_addr) visible to the user's session and require it to match one of them, rejecting all other addresses. Co-authored-by: Qiu Jian <qiujian@yunionyun.com> Co-authored-by: Claude <noreply@anthropic.com>