T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:59
- Finding
- Unverified Remote Shell Script Execution via curl and Bash## Vulnerability Details **File Location**: `SKILL.md`, line 59 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ```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. The script is executed without version pinning, cryptographic signature verification, checksum validation, or an opportunity to inspect the downloaded content. Installation of the declared CLI may be necessary for the Skill, but immediate remote-to-shell execution is not the minimum privilege or safest installation mechanism required to provide that functionality. The effective payload can change after the Skill has been audited. Compromise of the distribution server, domain, release process, or TLS endpoint could therefore turn this documented setup step into arbitrary local code execution. ### Attack Path 1. The `oo` CLI is unavailable, causing the Agent or user to follow the first-time setup instructions. 2. An attacker compromises the remote installation endpoint, its publishing process, or another component capable of controlling the returned script. 3. `curl` retrieves the attacker-controlled response from `https://cli.oomol.com/install.sh`. 4. The pipe sends the response directly to Bash without integrity validation. 5. Bash executes the payload with the privileges of the invoking user. 6. The payload can access data available to that user, modify local files, invoke other programs, or retrieve additional payloads. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's account. The accessible scope may include user-readable files, application credentials, environment variables, authentication material, and writable configuration or executable paths. If the command is run from a privileged a ...[truncated 258 chars]
- Remediation
- ## Remediation Suggestions - Remove the direct `curl | bash` installation pattern. - Prefer an official, trusted package manager with a pinned package version. - If manual installation is required, download a versioned release artifact to disk as a separate step. - Publish and verify a cryptographic signature or checksum over the downloaded artifact before execution. - Fail closed if verification does not succeed. - Allow the user to inspect the downloaded installer before running it. - Execute installation with ordinary user privileges unless a specific installation operation demonstrably requires elevation. - Document the expected files, permissions, and system changes made by the installer.
