T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:66
- Finding
- Unverified Remote Installer Is Piped Directly into Bash<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:66` **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: Critical ### Vulnerable Code ```markdown - **"How do I install/deploy?"** → Check `install/` or `platforms/` - Updating → `install/updating` (recommended: `curl -fsSL https://openclaw.ai/install.sh | bash`) ``` ### Technical Analysis The recommended command downloads a mutable script from an external server and passes its contents directly to Bash. The payload is not pinned to a version, saved for inspection, checked against a cryptographic digest, or verified with a trusted signature. HTTPS protects the connection in transit but does not guarantee that the remote server, hosting account, DNS configuration, or future version of the installer remains trustworthy. Because the response is executed immediately, compromise of any relevant part of the remote delivery chain results in arbitrary code execution under the privileges of the user running the command. This behavior is not required for the Skill's documentation and configuration-reference functionality. ### Attack Path 1. A user asks the Skill how to install or update OpenClaw. 2. The Skill recommends the documented `curl ... | bash` command. 3. The user executes the command. 4. The current response from `https://openclaw.ai/install.sh` is sent directly to Bash. 5. If the endpoint or its delivery chain is compromised, attacker-controlled shell commands execute without review or integrity validation. ### Impact Assessment The downloaded script receives all privileges available to the invoking user. It could potentially: - Read user-accessible credentials, configuration, and private files. - Modify OpenClaw configuration or executable files. - Install additional payloads or persistence mechanisms. - Exfiltrate local data over the network. - Obtain system-wide control if the command is run by a privileged account. The affected scope is the ho ...[truncated 65 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove all recommendations that pipe network responses directly into a shell. - Publish versioned installer artifacts with cryptographic signatures and checksums. - Instruct users to download the installer separately, for example: ```bash curl --proto '=https' --tlsv1.2 -fSLo openclaw-install.sh \ https://openclaw.ai/releases/<version>/install.sh ``` - Verify the downloaded artifact against a checksum obtained through a separately authenticated release channel. - Prefer signature verification using a documented, pinned public key. - Require users to inspect the downloaded script before executing it: ```bash less openclaw-install.sh bash openclaw-install.sh ``` - Pin documentation to a specific release rather than an unversioned, mutable installer URL. - Document the privileges and filesystem changes required by the installer. ]]>
