T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:55
- Finding
- Unverified Remote Shell Installer Execution<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:55` **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: High ### Vulnerable Code ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ### Technical Analysis The setup instructions pipe content downloaded from a mutable external URL directly into Bash. The remote response is executed without a pinned version, cryptographic checksum, digital-signature verification, or an opportunity to inspect the downloaded file. HTTPS protects the connection in transit but does not establish that the current server-hosted script is identical to the version reviewed with this Skill. Compromise of the domain, hosting infrastructure, publishing account, or installer itself could therefore turn this instruction into arbitrary code execution. Installation is only needed when `oo` is unavailable, but executing an unconstrained remote script grants substantially broader capabilities than those required to perform read-only iTunes searches. ### Attack Path 1. The agent attempts to use `oo` and receives an `oo: command not found` error. 2. It follows the documented first-time setup instruction. 3. `curl` retrieves the current contents of `https://cli.oomol.com/install.sh`. 4. A compromised or malicious server response supplies arbitrary shell commands. 5. Bash executes those commands immediately with the invoking user's privileges. 6. The payload may read accessible files and credentials, modify user configuration, install software, or establish persistence. ### Impact Assessment Successful exploitation provides arbitrary command execution with the privileges of the user running the installer. This normally includes access to that user's files, environment variables, authentication material, and writable configuration. If the agent is running under an elevated account, or if the installer obtains elevation, system-wide compromise may be possibl ...[truncated 77 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace the pipe-to-shell command with a version-pinned release artifact from a documented, trusted repository. 2. Download the installer to a local file without executing it: ```bash curl --proto '=https' --tlsv1.2 -fL -o oo-install.sh '<version-pinned-url>' ``` 3. Publish and verify a cryptographic digest or signed checksum before execution: ```bash echo '<expected-sha256> oo-install.sh' | sha256sum --check - ``` 4. Prefer a platform package manager or signed binary package with explicit version constraints. 5. Allow review of the downloaded script before running it and execute it as an unprivileged user. 6. Document all files, permissions, and network endpoints used by the installer. 7. Do not allow an agent to install the CLI automatically; require explicit user approval before any installation. ]]>
