feat: TRAC-926 upgrade: project resolution, download, and base ref - #3065
Merged
chanceaclark merged 4 commits intoJun 26, 2026
Merged
DryRunSecurity / General Security Analyzer
succeeded
Jun 26, 2026 in 6s
DryRun Security
Details
General Security Analyzer Findings: 1 detected
⚠️ Path Traversal via Tar Extraction packages/catalyst/src/cli/commands/upgrade.ts (click for details)
| Type | Path Traversal via Tar Extraction |
| Description | The downloadCore function uses tar to extract a tarball from a GitHub repository URL. While --strip-components=1 is used, it does not prevent path traversal attacks if the tarball contains malicious entries (e.g., ../../etc/passwd). The repository URL is configurable via the --repository flag, allowing users to specify arbitrary GitHub repositories. This could lead to arbitrary file writes outside the intended directory if a malicious repository is provided. |
| Filename | packages/catalyst/src/cli/commands/upgrade.ts |
| CodeLink | catalyst/packages/catalyst/src/cli/commands/upgrade.ts Lines 677 to 680 in c815131 |
Loading