CRITICAL: Port mappings bind to 0.0.0.0 with no restriction on privileged ports or conflicts #113
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Port mappings hardcode
HostIP: "0.0.0.0"(all interfaces) and allow any port 1-65535 including privileged ports. No conflict detection between apps.Location
internal/docker/client.go—buildPortConfig()hardcodesHostIP: "0.0.0.0"internal/handlers/app.go—parsePortValues()only checks range 1-65535Impact
UNIQUE(host_port, protocol)but only within a single appSuggested Fix
UPAAS_MIN_HOST_PORT=1024) to block privileged portsUPAAS_BIND_IP=127.0.0.1)Severity
CRITICAL — Privileged port hijacking can intercept host services including upaas itself.
WONTFIX