T03 · Remote Payload Retrieval and Execution
- Location
- SKILL.md:34
- Finding
- Unverified remote installer is piped directly into a shell<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:34-37` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```bash If bun is not installed: ```bash curl -fsSL https://bun.sh/install | bash ``` ``` ### Technical Analysis The installation instructions download mutable content from an external URL and execute it immediately with `bash`. There is no version pinning, checksum verification, signature verification, local inspection, or trusted package-manager boundary. Installing Bun is relevant to the declared WebSocket functionality, but piping an unauthenticated-at-the-artifact-level response directly into a shell is not the minimum privilege necessary. The effective code executed can change at any time after this Skill has been reviewed. ### Attack Path 1. A user or Agent follows the documented prerequisite instructions. 2. The shell retrieves the current response from `https://bun.sh/install`. 3. The response is passed directly to `bash` without validation. 4. If the upstream site, DNS resolution, TLS trust chain, CDN, or installer publication process is compromised, attacker-controlled commands execute immediately. 5. Those commands run with all privileges available to the user running the Skill. ### Impact Assessment Successful exploitation permits arbitrary command execution under the Agent user's account. This can expose local files and credentials, modify the Agent environment, install persistence, alter other Skills, or execute additional payloads. The command does not explicitly use `sudo`, so the demonstrated privilege scope is the current user rather than guaranteed root access. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Do not use `curl | bash`. - Install Bun through a trusted operating-system package manager where possible. - Otherwise, download a version-pinned release artifact separately. - Verify a publisher signature or a checksum obtained through an independent trusted channel. - Inspect the downloaded installer before execution. - Execute installation with an unprivileged account and avoid granting unnecessary filesystem or network access. - Document an approved Bun version rather than always retrieving the latest mutable installer. ]]>
