T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:12
- Finding
- Unverified Remote Installer Piped Directly to Bash## Vulnerability Details **File Location**: `SKILL.md:12` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical **Complete Code Snippet**: ```markdown - **Cursor CLI installed**: Run `agent --version`. If missing, install: `curl https://cursor.com/install -fsS | bash` (macOS/Linux/WSL) or see [Installation](https://cursor.com/docs/cli/installation). ``` ### Technical Analysis The prerequisite documentation instructs users to retrieve a mutable script from an external URL and pipe it directly into Bash. The downloaded content is executed immediately without version pinning, cryptographic signature verification, checksum validation, or an opportunity for local inspection. Although HTTPS provides transport protection, it does not establish that the retrieved script is safe. A compromised distribution endpoint, publisher infrastructure, certificate authority, DNS path, or authorized upstream deployment could alter the effective payload after this Skill has been reviewed. Executing the remote installer is not required by the wrapper itself. The wrapper only requires an existing Cursor CLI installation. Therefore, prescribing immediate execution of mutable remote code exceeds the minimum safe behavior needed to explain that prerequisite. ### Attack Path 1. A user follows the installation instruction in `SKILL.md`. 2. The shell requests the current response from `https://cursor.com/install`. 3. The external endpoint or its delivery chain serves modified shell code. 4. Bash executes that response immediately, without integrity or authenticity verification at the artifact level. 5. The payload performs arbitrary actions under the privileges of the user running the command. ### Impact Assessment A malicious installer could obtain the full privileges of the invoking account. Depending on that account’s permissions, it could read or modify source code and user files, access environment variables and credentials available to the ...[truncated 294 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the pipe-to-shell command from the prerequisite documentation. 2. Link to the official installation documentation without embedding an immediately executable remote command. 3. Prefer an official package manager or a version-pinned release artifact. 4. If a standalone installer is necessary: - Download it to a local file first. - Pin the expected version and source. - Verify a publisher signature or a trusted, pinned SHA-256 digest. - Allow the user to inspect the script. - Execute it only after successful verification and explicit consent. 5. Avoid recommending elevated execution such as `sudo` unless a documented installation step strictly requires it. 6. Replace the corresponding error text in `scripts/run-task.sh:45` with a safe documentation URL so the insecure command is not propagated to users.
