T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:71
- Finding
- Remote Tailscale Installer Is Executed Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:71` **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: High ### Vulnerable Code ```bash curl -fsSL https://tailscale.com/install.sh | sh ``` ### Technical Analysis The installation instructions pipe content retrieved from an external URL directly into a shell. The downloaded bytes are not reviewed locally and are not validated using a pinned cryptographic digest or an independently verified signature. Although `tailscale.com` is the expected vendor domain, the effective code executed during installation can change after this Skill has been reviewed. The surrounding provisioning instructions include administrative operations, so users may execute this command in a root or otherwise privileged shell. ### Attack Path 1. An attacker compromises the remote installer, its hosting infrastructure, or an authorized publishing account. 2. Alternatively, the delivery path supplies unexpected content despite the URL appearing legitimate. 3. A user follows the Skill instructions and executes the `curl | sh` pipeline with provisioning privileges. 4. The shell immediately executes the modified content without an integrity check or review step. 5. The payload can alter the operating system, install additional persistence, access local credentials, or compromise the standby gateway. ### Impact Assessment If run as root, the retrieved payload receives arbitrary root-level command execution on the standby VPS. It could modify any local file, create users or services, access gateway configuration and credentials, intercept failover operations, or use the server as a pivot point. No evidence shows that the current vendor installer is malicious. The vulnerability is the mutable and unverified remote execution mechanism. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Do not pipe downloaded content directly into a shell. 2. Prefer a vendor-supported package repository whose metadata and packages are cryptographically signed. 3. If a script is required, download it to a local file before execution. 4. Pin a reviewed release and verify an expected SHA-256 digest or vendor signature through an independent trust channel. 5. Inspect the verified script and execute it with only the privileges required by the installation step. 6. Record the verified release and digest in the deployment documentation to make installation reproducible. ]]>
