T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:25
- Finding
- Unverified Remote Installer Executed with Root Privileges<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:25-27` **Vulnerability Type**: Remote payload retrieval and privileged execution **Risk Level**: Critical ### Vulnerable Code ```bash # If not installed curl https://install.zerotier.com | sudo bash ``` ### Technical Analysis The documentation instructs the user to download a mutable shell script and immediately execute it as root. There is no package-version pinning, cryptographic signature verification, checksum validation, or opportunity to inspect the downloaded content before execution. The effective privileged payload can change after the Skill has been reviewed. Compromise of the hosting infrastructure, DNS resolution, TLS termination, or the installer itself would consequently provide an attacker with an immediate root-level execution channel. ### Attack Path 1. An attacker compromises or causes modification of the installer returned from `https://install.zerotier.com`. 2. A user follows the installation command in the Skill documentation. 3. `curl` retrieves the attacker-controlled response. 4. The shell pipeline passes the response directly to `sudo bash`. 5. The payload executes with root privileges without integrity verification. ### Impact Assessment Successful exploitation permits arbitrary command execution as root, including installation of persistent services, theft or modification of all locally accessible data, credential extraction, security-control alteration, and full operating-system compromise. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Prefer installation through an authenticated operating-system package repository. - Pin the package or installer to a reviewed version. - Download the installer to a local file instead of piping it directly to a shell. - Verify a vendor-published cryptographic signature or pinned checksum before execution. - Display the script for review and obtain explicit consent before invoking `sudo`. - Document the files, services, network access, and persistence introduced by installation. ]]>
