T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:71- Finding
Unverified Remote Script Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 71
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash curl -L https://foundry.paradigm.xyz | bash && foundryupTechnical Analysis
The installation instruction uses
curl -Lto retrieve mutable content from an external URL and passes the response directly to Bash. Redirect following is enabled, so code returned by either the original server or any server in the redirect chain is executed immediately.The payload is not pinned to a version, saved for inspection, checked against a cryptographic digest, or verified with a trusted digital signature. Consequently, the code actually executed can change after the Skill has been reviewed. Although installing Foundry is relevant to the declared smart-contract development workflow and the named domain appears associated with Foundry, direct remote-to-shell execution is not required to provide that functionality.
Attack Path
- A user or agent follows the Foundry setup instructions.
- The command requests content from
https://foundry.paradigm.xyzand follows redirects. - The source endpoint, hosting infrastructure, DNS resolution, or redirect destination is compromised or otherwise serves altered content.
- The altered response is streamed directly into Bash without inspection or integrity verification.
- The malicious script executes with the privileges of the user running the command.
- The payload can access data and perform operations available to that user, potentially including reading project files and wallet-related secrets, modifying files, installing additional software, or initiating network connections.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user's account. The precise scope depends on that account's permissions and environment. Potentially exposed assets i ...[truncated 516 chars]
- Remediation
View remediation
Remediation Suggestions
Replace the
curl | bashworkflow with a verifiable installation process:- Obtain a version-pinned release artifact from the project's authenticated official release channel.
- Download the artifact to a local file rather than streaming it into a shell.
- Verify it against a checksum or cryptographic signature published through an independently trusted channel.
- Abort installation if verification fails.
- Inspect the installer or use a reputable package manager where practical.
- Execute installation with an unprivileged account and request elevated privileges only for narrowly defined operations when necessary.
- Pin the Foundry version to reduce unreviewed supply-chain changes and document how users can update it safely.
At minimum, separate retrieval from execution and display an explicit warning that externally downloaded installation code must be authenticated before it is run.
