T03 · Remote Payload Retrieval and Execution
Error
- Location
- README.md:55
- Finding
- Unverified Remote Installer Is Piped Directly into a Shell<![CDATA[ ## Vulnerability Details **File Location**: `README.md:55-58` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```bash # Install via official installer curl -sSL https://install.openclaw.ai | sh ``` ### Technical Analysis The installation instructions download a mutable response from an external server and immediately execute it with `sh`. There is no version pinning, cryptographic signature verification, checksum validation, or opportunity to inspect the downloaded artifact before execution. Although HTTPS protects the connection in transit under normal conditions, it does not make the remote script immutable or independently verify its contents. A compromise of the installer host, DNS, CDN, certificate trust chain, or publishing process could replace the reviewed installer with arbitrary shell commands. This execution channel is not necessary for the Skill's core API-recording functionality. A versioned and integrity-verified installation method would provide the required dependency without granting an external endpoint the ability to choose code at installation time. ### Attack Path 1. An attacker compromises the installer endpoint or its delivery infrastructure. 2. The attacker modifies the response from `https://install.openclaw.ai`. 3. A user follows the documented Quick Start command. 4. `curl` downloads the attacker-controlled response. 5. The shell executes the response immediately under the invoking user's account. 6. The payload can access or modify any resources available to that account and may install additional components. ### Impact Assessment Successful exploitation provides arbitrary command execution with the privileges of the user running the installer. The resulting scope may include local source code, browser profiles, OpenClaw configuration and tokens, SSH credentials, user-owned files, and any systems accessible through the user's existing credentials. If the com ...[truncated 90 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the `curl | sh` installation pattern. 2. Distribute a versioned installer or package through a verified package repository. 3. Pin the exact audited version rather than requesting the latest release. 4. Publish a SHA-256 digest or cryptographic signature through an independent trusted channel. 5. Download the artifact to disk, verify its integrity and signer, and only then execute it. 6. Document the permissions and files modified by the installer. 7. Where a script remains necessary, provide instructions such as: ```bash curl -fSLo openclaw-installer.sh "https://example.invalid/releases/v1.2.3/install.sh" echo "<EXPECTED_SHA256> openclaw-installer.sh" | sha256sum -c - less openclaw-installer.sh sh openclaw-installer.sh ``` The placeholder URL, version, and digest must be replaced with independently verified official release information. ]]>
