Verify downloaded binaries #4275
Labels
App: EmuHawk
Relating to EmuHawk frontend
re: RetroAchievements
Request: Feature/Enhancement
For feature requests or possible improvements
Milestone
BizHawk/src/BizHawk.Client.EmuHawk/AVOut/FFmpegDownloaderForm.cs
Lines 83 to 104 in 0e9c21e
BizHawk/src/BizHawk.Common/FFmpegService.cs
Lines 16 to 18 in 0e9c21e
Not great, there's some trustworthiness to those addresses, but it gets worse...
BizHawk/src/BizHawk.Client.EmuHawk/RetroAchievements/RAIntegration.Update.cs
Lines 47 to 80 in 0e9c21e
...because this blindly follows any address returned in the first response 🙃 And bonus points for copy-pasting:
BizHawk/src/BizHawk.Client.EmuHawk/RetroAchievements/RAIntegrationDownloaderForm.cs
Lines 94 to 109 in 0e9c21e
Simple solution for FFmpeg is to hardcode the checksum.
RA's API seems to be down at the moment so I can't check if that includes a checksum, but even if it did, it would need to be signed as well (and we hardcode the pubkey).
And assert
info["LatestVersionUrlX64"].StartsWith("https://retroachievements.org/")
.The text was updated successfully, but these errors were encountered: