T03 · Remote Payload Retrieval and Execution
- Location
references/README.md:21- Finding
Remote Installer Is Executed Directly Without Integrity Verification
- Content
View full analysis
Vulnerability Details
File Location:
references/README.md:21
Vulnerability Type:T03: Remote Payload Retrieval and Execution
Risk Level: Criticalbash curl https://cursor.com/install -fsS | bashTechnical Analysis
The installation command sends the response from a mutable external URL directly to Bash. It does not pin an installer version, verify a cryptographic checksum or signature, save the script for inspection, or obtain explicit approval after showing its contents.
Although the URL is consistent with the named Cursor product, the effective payload can change after this Skill has been reviewed. Compromise of the vendor infrastructure, distribution endpoint, DNS resolution, TLS trust chain, or installer publishing process could therefore turn this command into an arbitrary-code execution channel.
Piping directly to Bash is not the minimum privilege necessary to document or install the CLI. A package manager or a separately downloaded and verified artifact would provide stronger integrity and review controls.
Attack Path
- An attacker compromises or gains influence over the remote installer or its delivery infrastructure.
- The installer response is replaced with malicious shell commands.
- A user follows the documented installation instruction.
curlretrieves the altered response and immediately passes it to Bash.- The malicious commands execute with all permissions available to the invoking user.
Impact Assessment
Successful exploitation permits arbitrary command execution under the invoking account. The payload could read or modify user-accessible source repositories, configuration files, shell startup files, SSH material, API credentials, and other sensitive data. It could also install additional software or establish user-level persistence. Root-level access is not inherent in the command, but the impact would increase if it were run from a privileged shell.
- Remediation
View remediation
Remediation Suggestions
- Prefer a signed, version-pinned package distributed through a verified package manager.
- If an installer script is unavoidable, download it to a local file rather than piping it directly to a shell.
- Pin an immutable installer release and publish its expected SHA-256 digest.
- Verify a vendor signature or checksum through an independent trusted channel before execution.
- Display or inspect the downloaded script and require explicit user approval before running it.
- Execute the installer as an unprivileged user and document all files and configuration it is expected to modify.
- Provide the Homebrew installation method as the preferred option where supported.
