T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:369
- Finding
- Unverified Remote Installation Script Executed Directly by Bash<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:369` **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: High ```bash curl -fsSL https://molt.bot/install.sh | bash ``` ### Technical Analysis The command pipes a mutable response from an external domain directly into Bash. It provides no version pinning, checksum verification, digital-signature verification, local inspection, or confirmation prompt. Consequently, the code audited in this package does not define the effective installation payload. The external server can change the script after the Skill has been reviewed. The project also does not establish that `molt.bot` is an authoritative OpenClaw distribution source. Using HTTPS protects transport integrity under normal circumstances, but it does not protect against compromise of the source server, malicious upstream changes, domain control loss, or a compromised publishing process. ### Attack Path 1. A user follows the installation guide and runs the command inside WSL. 2. The external server, or an attacker controlling its publishing infrastructure, supplies modified shell code. 3. `curl` writes the response directly to the Bash process without saving it for inspection. 4. Bash executes the attacker's commands with the privileges of the current WSL user. 5. If the guide's passwordless sudo recommendation has also been applied, the payload can invoke `sudo` without authentication and obtain WSL root privileges. ### Impact Assessment The payload can execute arbitrary commands as the current WSL user, access that user's files and credentials, modify shell configuration, install additional software, and alter OpenClaw configuration. In combination with unrestricted passwordless sudo, it can gain complete root control of the WSL distribution. Data reachable from WSL, including mounted Windows files accessible to that account, may also be exposed or modified. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the `curl | bash` pipeline. - Download a version-pinned installer or release artifact from a documented official source. - Publish and verify a trusted SHA-256 checksum or publisher signature before execution. - Save the installer locally and allow the user to inspect it before running it. - Run installation with an ordinary WSL account and elevate only individual commands that demonstrably require root access. - Apply strict failure handling and document the expected files and system changes. - If a bootstrap script remains necessary, pin both its immutable version and expected digest rather than trusting the current response at a mutable URL. ]]>
