Open Vyryn opened 5 months ago
I may be misreading the code, but it doesn't seem like the file contents downloaded from mirrors in lib/services/download_file.dart are verified with the annas-archive md5 hash anywhere. Since third party mirrors can host whatever they like, this is an important step to avoid handing users potential malware. Is it maybe done somewhere I'm not seeing?
I'm sorry I haven't implemented that check ,But will sure implement the md5 hash check ASAP. Thank you for mentioning this bro
I think maybe it would be good to also show it in the ui?
Sure, gonna add the md5 verified tick after file download on the pop up
it looks like its done in latest release
btw if the checksum is wrong, the file is deleted?
If the checksum doesn't match a pop immediately shows with a warning
"The downloaded book may be malicious. Delete it and get the same book from another source, or use the book at your own risk."
@dstark5 Shouldnt there be also option to delete the file from the dialog? so its easy to manage it?
Yes there should be but I haven't added the delete button on the alert pop up will sure add it in next update
great work
I may be misreading the code, but it doesn't seem like the file contents downloaded from mirrors in lib/services/download_file.dart are verified with the annas-archive md5 hash anywhere. Since third party mirrors can host whatever they like, this is an important step to avoid handing users potential malware. Is it maybe done somewhere I'm not seeing?