Commit ba2d91f
committed
fix(install): make checksum verification mandatory
verify_checksum() previously warned and continued when sha256sum was
unavailable or the checksums file couldn't be downloaded. An attacker
who can manipulate the download could serve a binary without the
checksum file and have it silently installed.
Fail the installation if:
- sha256sum/shasum is not available
- checksums file cannot be downloaded
- filename not found in checksums file
Closes #590
Signed-off-by: latenighthackathon <latenighthackathon@users.noreply.github.com>1 parent 0ac1fbd commit ba2d91f
1 file changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | | - | |
196 | | - | |
| 194 | + | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
| |||
256 | 254 | | |
257 | 255 | | |
258 | 256 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
265 | 262 | | |
266 | 263 | | |
267 | 264 | | |
| |||
0 commit comments