Restore: downloaded blob hash is not verified #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
restore.go,downloadBlob()callsFetchAndDecryptBlob()and returns the data without verifying that the hash of the downloaded encrypted blob matches the expectedblobHash.If the storage returns corrupted data or the wrong blob, restore will silently produce corrupted output. The blob hash should be verified after download, similar to how
verify.godoes it with aTeeReader+sha256.Ref: parent issue #1