T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:52
- Finding
- Unverified Remote Installer Downloaded and Executed Directly<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:52-62` **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: High ### Vulnerable Code ```markdown - **`oo: command not found`** — install the oo CLI (other platforms: <https://cli.oomol.com/install-guide.md>): ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ```powershell irm https://cli.oomol.com/install.ps1 | iex # Windows PowerShell ``` ``` ### Technical Analysis The installation instructions retrieve mutable scripts from `cli.oomol.com` and immediately execute them through Bash or PowerShell. Neither workflow pins an installer version, verifies a cryptographic signature or checksum, nor gives the user an opportunity to inspect the downloaded content before execution. Consequently, the code that ultimately runs is not contained in the audited Skill package and can change after the audit. The effective payload depends on the current response from the remote server. Compromise of the hosting infrastructure, publishing process, or another trusted delivery component could turn the documented installation command into an arbitrary-code execution path. Although installation is presented as a fallback for a missing CLI rather than an automatic routine, executing an unverified remote response is not the minimum privilege necessary to install the dependency safely. ### Attack Path 1. The `oo` command is unavailable, causing the user or agent to follow the first-time setup instructions. 2. Bash or PowerShell requests the installer from `cli.oomol.com`. 3. A compromised hosting or release-delivery component supplies a modified installer. 4. The shell executes the response immediately without integrity or authenticity verification. 5. The installer executes arbitrary commands with the privileges of the user who launched the installation. ### Impact Assessment Successful exploitation provides arbitrary comm ...[truncated 469 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove both direct execution pipelines (`curl | bash` and `irm | iex`). 2. Distribute the CLI through a trusted, version-pinned package manager or release artifact. 3. Download the installer to a local file before execution so it can be inspected. 4. Publish a cryptographic signature and a version-specific checksum from an independently protected channel. 5. Verify the signature or checksum before running the installer and fail closed if verification fails. 6. Require explicit user approval before installing software or running any downloaded executable. 7. Run installation with ordinary user privileges unless a documented step strictly requires elevation. 8. Document the expected files, network destinations, and permission changes made by the installer. ]]>
