Skip to content

Harden installer archive extraction#572

Merged
ryanfowler merged 1 commit into
mainfrom
fix-archive-extraction-traversal
May 25, 2026
Merged

Harden installer archive extraction#572
ryanfowler merged 1 commit into
mainfrom
fix-archive-extraction-traversal

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Replace full tarball extraction in install.sh with a targeted stream extraction of the expected fetch binary.
  • Write the payload to a controlled temp path, then move it into place and set executable permissions.
  • Prevent archive path traversal and symlink-based writes outside the temp directory during install.

Testing

  • bash -n install.sh
  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings

@ryanfowler ryanfowler merged commit 72927d4 into main May 25, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-archive-extraction-traversal branch May 25, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant