T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:58- Finding
Unverified Remote Shell Script Execution via curl and Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 58
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighComplete Code Snippet:
bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / LinuxTechnical Analysis
The installation command downloads a mutable script from an external URL and pipes it directly into Bash. The instructions do not pin the script to a reviewed version or require validation through a cryptographic checksum or publisher signature. Although HTTPS protects the connection in transit, it does not ensure that the script remains identical to the version assessed during this audit.
If the hosting account, domain, web infrastructure, or release process is compromised, an attacker can replace the installation script. The substituted payload would then be executed immediately without being saved for review. Installing the CLI is related to the declared functionality, but immediate execution of an unverified remote script exceeds the minimum privilege and trust necessary to perform that installation safely.
Attack Path
- The
ooCLI is unavailable on the user's system. - The user or agent follows the first-time setup instructions.
- An attacker compromises the remote script's hosting account, delivery infrastructure, domain, or upstream publishing process.
- The
curlcommand downloads the attacker-controlled script. - The shell pipeline passes the response directly to Bash without integrity verification.
- Bash executes the payload with the privileges of the invoking user.
Impact Assessment
A successful attack obtains arbitrary code execution under the invoking user's account. The payload could read or modify files available to that account, access environment variables and locally stored credentials, alter shell configuration, install additional software, establish persistence where permissions permit, or retrieve and e ...[truncated 358 chars]
- The
- Remediation
View remediation
Remediation Suggestions
Replace the pipe-to-shell installation command with a verifiable installation procedure:
- Pin the CLI to a specific reviewed release version.
- Download the installer or binary to a local file without executing it.
- Obtain an expected SHA-256 or stronger digest through an independently authenticated channel, or use a valid publisher signature.
- Verify the checksum or signature before execution.
- Prefer a signed operating-system package or a trusted package manager where available.
- Display the exact file and command that will be executed and require explicit user approval.
- Run installation without administrative privileges unless a specific installation step demonstrably requires elevation.
- Document the expected files, network destinations, and system changes made by the installer.
A safer workflow is: download a version-pinned artifact, verify its publisher signature or documented checksum, inspect it, and then execute it as an unprivileged user.
