T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:46- Finding
Unverified Remote Installer Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 46
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash # Install curl https://cursor.com/install -fsS | bashTechnical Analysis
The installation instruction downloads content from a mutable external URL and passes it directly to Bash. The response is executed before the user can inspect it, and the instruction does not pin an installer version or verify a cryptographic signature or checksum.
HTTPS provides transport protection but does not establish that every future payload served by the endpoint is safe. Compromise of the vendor endpoint, publishing infrastructure, account, DNS resolution, or certificate trust chain could cause arbitrary attacker-controlled shell commands to be returned and executed.
Installing Cursor CLI is relevant to the Skill's declared functionality, but piping an unverified network response directly into a shell is not the minimum-risk method needed to perform that installation. The same objective can be achieved using a signed package, a version-pinned artifact, or a separately downloaded and verified installer.
Attack Path
- An attacker compromises or gains control over the installer endpoint or its delivery infrastructure.
- The attacker changes the response from
https://cursor.com/installto include malicious shell commands. - A user or Agent follows the documented prerequisite and runs the command.
curlretrieves the attacker-controlled response.- The pipe sends the response directly to Bash without inspection or integrity validation.
- Bash executes the payload with the permissions of the invoking account.
- The payload can access or alter resources available to that account and may attempt persistence or further compromise.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user ...[truncated 532 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the
curl | bashinstruction with installation through a trusted package manager using a version-pinned, signed release. - If a standalone installer is required, download it to a local file rather than executing it through a pipe.
- Publish and verify a cryptographic signature using a securely distributed vendor signing key.
- Publish and verify a SHA-256 checksum for the exact pinned installer version.
- Allow the user to inspect the downloaded installer before execution.
- Require explicit user approval before executing any installer or permitting system changes.
- Run installation with ordinary user privileges and request elevated privileges only for a narrowly defined operation when strictly necessary.
- Document the expected files, directories, network access, and configuration changes made by the installer.
- Prefer a hardened sequence such as download, signature verification, checksum validation, review, and then execution.
- Replace the
