T03 · Remote Payload Retrieval and Execution
- Location
plan1-cloud-gateway.sh:41- Finding
Unverified Remote Installation Scripts Are Executed as Root
- Content
View full analysis
/dev/null; then echo " 安装 Tailscale..." if [ "$OS" = "ubuntu" ] || [ "$OS" = "debian" ]; then curl -fsSL https://tailscale.com/install.sh | sh ``` `plan1-cloud-gateway.sh:136-143` does the same with NodeSource installers: ```bash else echo " 安装 Node.js 22..." if [ "$OS" = "ubuntu" ] || [ "$OS" = "debian" ]; then curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs elif [ "$OS" = "centos" ] || [ "$OS" = "rhel" ] || [ "$OS" = "rocky" ]; then curl -fsSL https://rpm.nodesource.com/setup_22.x | bash - yum install -y nodejs ``` Equivalent remote execution occurs at: ```bash # plan2-cloud-remote-gateway.sh:33-37 if ! command -v tailscale &> /dev/null; then echo " 安装 Tailscale..." if [ "$OS" = "ubuntu" ] || [ "$OS" = "debian" ]; then curl -fsSL https://tailscale.com/install.sh | sh ``` ```bash # plan2-cloud-remote-gateway.sh:73-77 if ! command -v node &> /dev/null; then echo " 安装 Node.js 22..." if [ "$OS" = "ubuntu" ] || [ "$OS" = "debian" ]; then curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs ``` ```bash # plan3-cloud-gateway.sh:26-30 if ! command -v tailscale &> /dev/null; then curl -fsSL https://tailscale.com/install.sh | sh fi ``` ```bash # plan3 ...[truncated 2123 chars]- Remediation
View remediation
