T03 · Remote Payload Retrieval and Execution
Error
- Location
- install.sh:24
- Finding
- Remote pip Bootstrap Script Is Executed Without Integrity Verification## Vulnerability Details **File Location**: `install.sh`, line 24 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ```bash curl -sSL https://bootstrap.pypa.io/get-pip.py | python ``` ### Technical Analysis The installer streams a remote Python script directly into the active Python interpreter. Although HTTPS protects the connection in transit under normal conditions, the effective code is controlled by the remote endpoint and can change after the Skill has been reviewed. No version pin, cryptographic checksum, signature verification, local inspection step, or trusted-copy validation is performed before execution. Bootstrapping pip may be necessary when the virtual environment lacks it, but direct `curl | python` execution is not the minimum-risk mechanism required for the Skill's video-upscaling functionality. The downloaded script executes with all permissions held by the user running `install.sh`. ### Attack Path 1. An attacker compromises the remote hosting infrastructure, its publishing process, DNS resolution, a trusted certificate authority, or another relevant part of the delivery chain. 2. The installer requests `get-pip.py` from the fixed URL. 3. The malicious or substituted response is piped directly to Python without integrity verification. 4. Python executes the response immediately. 5. The payload can read or alter files available to the installer account, modify the Skill environment, replace local executables, or launch additional processes and network connections. ### Impact Assessment Successful exploitation provides arbitrary code execution with the privileges of the account running the installer. The payload could compromise the Skill directory and virtual environment, steal user-accessible credentials or data, tamper with generated videos, or establish additional malicious behavior. The code does not request elevated privileges itself, so this finding does not indep ...[truncated 53 chars]
- Remediation
- ## Remediation Suggestions - Remove the direct `curl | python` pipeline. - Prefer creating the environment with a trusted Python installation that already includes `ensurepip`, then run `python -m ensurepip`. - If an external bootstrap script is unavoidable, download a versioned copy to a temporary file, verify a pinned cryptographic digest or trusted signature, and execute it only after verification succeeds. - Use `curl --fail --show-error --location` and fail closed on download or validation errors. - Document the expected script version and digest so installation is reproducible and auditable. - Run installation as an unprivileged account and avoid invoking the installer through `sudo`.
