T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:57
- Finding
- Unverified Remote Installer Executed Through Bash## Vulnerability Details **File Location**: `SKILL.md`, line 57 **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: High **Vulnerable Code Snippet**: ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ### Technical Analysis The installation instruction pipes content retrieved from a mutable external URL directly into Bash. The script is executed before the user or Agent can inspect it, and the instruction provides no version pinning, cryptographic checksum, or signature verification. HTTPS protects the connection under normal conditions, but it does not establish that the retrieved script is the same script that was reviewed. Compromise of the hosting account, web server, DNS or certificate infrastructure, or the installer publication process could cause arbitrary commands to be returned and executed. Installing the required CLI is relevant to the Skill's declared functionality, but immediate execution of an unverified remote script is not the minimum privilege or minimum-risk mechanism necessary to perform that installation. ### Attack Path 1. An Agent attempts to use the Skill and encounters an `oo: command not found` error. 2. Following `SKILL.md`, it runs the documented `curl` pipeline. 3. The current contents of `https://cli.oomol.com/install.sh` are downloaded at execution time. 4. A compromised or malicious installer response is passed directly to Bash without inspection or integrity validation. 5. The payload executes arbitrary shell commands with the privileges of the account running the command. 6. Those commands could access readable files and credentials, alter user configuration, install additional software, or establish persistence. Such follow-on behavior is possible but is not itself present in the audited file. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's privileges. ...[truncated 479 chars]
- Remediation
- ## Remediation Suggestions - Remove the direct `curl | bash` installation pattern. - Prefer a signed operating-system package or a reputable package manager with package-signature and integrity validation. - Pin the CLI to a specific reviewed release rather than retrieving a mutable installer endpoint. - Download the artifact without executing it, then verify a vendor-published cryptographic checksum and, preferably, a detached signature whose trust root is distributed separately. - Display or document the expected installer behavior and request explicit user approval before executing downloaded code. - Execute installation with ordinary user privileges unless a specific, documented operation requires elevation. - Fail closed when integrity or signature verification fails.
