T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:59
- Finding
- Unverified Remote Shell Script Execution During CLI Installation## Vulnerability Details **File Location**: `SKILL.md:59` **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: High **Complete Code Snippet**: ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ### Technical Analysis The installation instruction downloads a mutable shell script from an external server and pipes it directly into `bash`. No release version is pinned, and no cryptographic signature or checksum is verified before execution. HTTPS protects the connection in transit but does not establish that the current server-side script is the same script that was reviewed. Installation may be necessary when the CLI is unavailable, but immediate execution of an unauthenticated remote payload is not the minimum-safe mechanism. The effective code can change after the Skill has been audited. ### Attack Path 1. The `oo` command is unavailable, causing the first-time setup instructions to be used. 2. An attacker compromises the installer host, hosting account, DNS resolution, TLS termination infrastructure, or release process. 3. The attacker replaces or alters `install.sh`. 4. `curl` retrieves the altered response. 5. The pipe sends the response directly to `bash` without an inspection or verification boundary. 6. The malicious script executes with the privileges of the user running the command. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's account. The payload could read or modify files accessible to that user, access environment variables and local credentials, install additional software, alter shell configuration, or establish persistence where the user's permissions permit it. If the command is run from an elevated shell, the impact may extend to system-wide compromise.
- Remediation
- ## Remediation Suggestions - Replace the pipe-to-shell command with a pinned, versioned release obtained from an official release repository. - Download the installer to a local file without executing it. - Verify a vendor-published cryptographic signature or a checksum delivered through an independently trusted channel. - Review the downloaded file before execution and run it as a separate step. - Document the files, permissions, and configuration changes made by the installer. - Run installation without administrative privileges unless a specific operation demonstrably requires elevation. - Prefer a signed operating-system package or trusted package manager where available.
