scripts: verify version in manifest
To make a downgrade attack harder, we also check that the version string is contained in the manifest, on the same line as the hash.
This commit is contained in:
1 file changed
+1
-1
@@ -231,7 +231,7 @@ function check_hash() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "^$SUM" "$TEMP_DIR/$MANIFEST"; then
|
if ! grep "^$SUM" "$TEMP_DIR/$MANIFEST" | grep -q "$VERSION"; then
|
||||||
echo "ERROR: Hash $SUM for $2 not found in $MANIFEST: "
|
echo "ERROR: Hash $SUM for $2 not found in $MANIFEST: "
|
||||||
cat "$TEMP_DIR/$MANIFEST"
|
cat "$TEMP_DIR/$MANIFEST"
|
||||||
echo " The expected release binaries have been verified with the developer "
|
echo " The expected release binaries have been verified with the developer "
|
||||||
|
|||||||
Reference in new issue
Block a user