Repository navigation
fix(security): fail-hard on checksum verification failure during upgrade - #609
Merged
Merged
Conversation
Previously, uteke upgrade silently skipped SHA-256 checksum verification when the checksums file failed to download or the archive name was not found. This allowed a MITM attack to deliver a tampered binary. Changes: - Fail with Err when checksums download fails (network error or HTTP error) - Fail when archive checksum is missing from checksums file - Add UTEKE_UPGRADE_SKIP_CHECKSUM=1 env opt-in for explicit bypass - Cleanup temp files on all failure paths Found by: cora scan (glm-5.2 via Bifrost)
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
fix(security): fail-hard on checksum verification failure during upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Cora scan (via GLM-5.2 + Bifrost) found a security issue:
uteke upgradesilently skipped SHA-256 checksum verification when the checksums file failed to download or the archive name was not found in the file. This allowed a MITM attacker to deliver a tampered binary by dropping the checksums request.Changes
Errwhen checksums download fails (network error, HTTP error)UTEKE_UPGRADE_SKIP_CHECKSUM=1env var for explicit opt-outTesting
cargo fmt --all -- --check✅ passesFound by
Cora code review (GLM-5.2 via Bifrost gateway)