T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:60
- Finding
- Unverified Remote Shell Script Executed Through Bash## Vulnerability Details **File Location**: `SKILL.md`, line 60 **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: High **Vulnerable Code**: ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ### Technical Analysis The installation instruction downloads a shell script from an external URL and passes the response directly to Bash. The fetched content is not included in the reviewed project and can change after the Skill has been audited. No fixed release version, cryptographic checksum, digital signature, or manual review step is required before execution. Although the URL uses HTTPS and appears to be hosted on the CLI vendor's domain, TLS does not establish that every future version of the script is safe. Compromise of the hosting account, delivery infrastructure, DNS/TLS chain, or installer publication process could turn this command into an arbitrary-code execution channel. Installing the CLI may be relevant to first-time setup, but executing mutable network content without verification exceeds the minimum privilege and trust necessary to perform that installation safely. ### Attack Path 1. The `oo` CLI is unavailable, causing the user or Agent to consult the first-time setup instructions. 2. An attacker compromises the remote installer, its hosting infrastructure, or another relevant delivery component. 3. The attacker modifies `install.sh` to include arbitrary shell commands. 4. `curl` retrieves the attacker-controlled response. 5. The pipeline sends the response directly to Bash without saving, inspecting, pinning, or verifying it. 6. The malicious commands execute with all permissions available to the account that launched the installer. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's privileges. Depending on those privileges and the contents of the remote payload, an attacker co ...[truncated 546 chars]
- Remediation
- ## Remediation Suggestions Replace the network-to-shell pipeline with a verifiable installation procedure: 1. Reference a specific, immutable CLI release rather than a mutable installer endpoint. 2. Download the artifact to a local file without executing it. 3. Publish and verify a cryptographic checksum over an authenticated channel. 4. Prefer a vendor signature and validate it against a documented, pinned signing key. 5. Inspect the downloaded installer or use a trusted operating-system package manager before execution. 6. Request explicit user approval before installing software or running installation scripts. 7. Run installation with ordinary user privileges unless a clearly documented step strictly requires elevation. 8. Document the files, directories, network endpoints, and configuration changes created by the installer. A safer conceptual workflow is: ```bash curl -fL -o oo-install.sh "https://trusted.example/releases/pinned-version/install.sh" echo "<published-sha256> oo-install.sh" | sha256sum --check - less oo-install.sh bash oo-install.sh ``` The actual release URL, digest, and signature verification process must come from an authenticated vendor release channel.
