T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:62
- Finding
- Unverified Remote Shell Script Execution on macOS and Linux## Vulnerability Details **File Location**: `SKILL.md`, line 62 **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 first-time setup instructions retrieve a mutable script from an external URL and pipe it directly into Bash. The downloaded content is not pinned to a version or immutable artifact, and no cryptographic signature or checksum is verified before execution. Installing the required CLI is related to the Skill's declared functionality, and the documented step is only intended to run after an `oo: command not found` error. However, direct `curl | bash` execution exceeds the minimum privilege necessary to download an installer because it gives the remote response immediate code-execution authority under the invoking user's account. HTTPS protects the connection in transit but does not protect against compromise of the vendor's domain, DNS, web server, CDN, publishing credentials, or installation pipeline. Because the response is executed without review, the effective payload can change after this Skill has been audited. ### Attack Path 1. The `oo` CLI is absent and an attempted connector command fails. 2. The user or agent follows the documented first-time setup instruction. 3. An attacker who has compromised the vendor's delivery infrastructure causes `https://cli.oomol.com/install.sh` to return a modified shell script. 4. `curl` sends the response directly to Bash without integrity verification. 5. The malicious script executes with the permissions of the invoking user. ### Impact Assessment Successful exploitation permits arbitrary command execution within the invoking user's privilege boundary. The payload could read or alter accessible files, steal environment variables or locally available credentials, modify shell config ...[truncated 176 chars]
- Remediation
- ## Remediation Suggestions - Replace the pipe-to-shell command with installation from a version-pinned, immutable release artifact. - Download the artifact to a local file without executing it immediately. - Publish and require verification of a SHA-256 digest and, preferably, a signature rooted in a documented publisher key. - Present the verified script for inspection before execution. - Run installation with ordinary user privileges unless a narrowly defined operation specifically requires elevation. - Pin the expected CLI version and document a controlled upgrade process. - If an installer script remains necessary, fail closed when signature or checksum validation cannot be completed.
