-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
in-progressIssue is being actively worked onIssue is being actively worked onsecuritySecurity vulnerabilities and concernsSecurity vulnerabilities and concerns
Description
Severity
CRITICAL
Location
sh/cli/install.sh, line 227
Issue
The install script downloads and executes the bun installer without any integrity verification:
curl -fsSL https://bun.sh/install | bashWhile HTTPS provides transport security, it doesn't protect against:
- Compromise of the bun.sh domain
- Man-in-the-middle attacks if certificate validation is bypassed
- Supply chain attacks on the bun installer
Recommendation
Add checksum verification before executing the bun installer:
- Download the installer to a temp file
- Verify the checksum against a known-good value (embedded in the script or fetched from a separate trusted source)
- Only execute if the checksum matches
Alternatively, if bun provides signed releases, verify the signature.
Impact
Arbitrary code execution on user machines during spawn installation if the bun installer is compromised.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in-progressIssue is being actively worked onIssue is being actively worked onsecuritySecurity vulnerabilities and concernsSecurity vulnerabilities and concerns