T03 · Remote Payload Retrieval and Execution
Error
- Location
- README.md:151
- Finding
- Mutable Remote Homebrew Installer Is Downloaded and Executed Directly## Vulnerability Details **File Location**: `README.md:151` and `FAQ.md:207` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` ### Technical Analysis The disaster-recovery documentation retrieves a shell script from the mutable `HEAD` branch of an external repository and immediately executes the response with Bash. There is no version pinning, checksum validation, signature verification, or opportunity to inspect the downloaded payload before execution. Although the URL is associated with Homebrew's GitHub organization, the command's effective behavior can change after this Skill has been reviewed. A compromise of the upstream repository, maintainer account, delivery infrastructure, or installation branch would turn this documented command into an arbitrary remote-code execution channel. Installing Homebrew is ancillary to restoring OpenClaw backups and exceeds the minimum functionality required by the restoration scripts. The Skill itself only requires existing local tools such as Bash, `tar`, `shasum`, and OpenSSL. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or the content-delivery path. 2. The attacker modifies `install.sh` on the mutable `HEAD` branch. 3. A user follows the Skill's macOS disaster-recovery instructions. 4. `curl` downloads the attacker's current payload. 5. Bash executes the response immediately without integrity or authenticity verification. 6. The payload performs arbitrary actions with the user's privileges and could request elevated privileges through the installation flow. ### Impact Assessment The downloaded script receives arbitrary command execution as the invoking user. It can read or modify OpenClaw configuration, API credentials, restored memories, installed Skills, shell co ...[truncated 171 chars]
- Remediation
- ## Remediation Suggestions - Remove the `curl`-to-Bash command and link users to Homebrew's official installation documentation. - If automated installation is essential, pin the installer to a reviewed immutable commit rather than `HEAD`. - Download the installer as a separate file, verify an independently obtained cryptographic digest or signature, and only then execute it. - Display the installer source and require explicit user review before execution. - Document the minimum required local dependencies and allow users to install them through an already trusted package manager.
