Downloading of images through different circuits than the ones used to view them causes data corruption and incorrect files
-
You view an image in Tor Browser, right-click on it, and hit "Save Image As" to download it.
-
The download appears to complete normally, Tor Browser shows no error or that the download has failed, and the image is seemingly on your computer.
-
However, because Tor Browser picks a new circuit every time you choose to save an image, one that is different than the one used to actually deliver it to you as you see it in your browser, and because you got unlucky this time with the resultant IP address selected, instead of saving your image, you end up saving Cloudflare's "Attention Required" page with the name of your image, or one of those "Your IP address has been blacklisted." pages, or some other file that is not a valid image. When you go to view the "image", it is corrupt, invalid, and unviewable from the perspective of most image viewers as it has no valid image header. If the image somehow disappeared from the Internet before you noticed this, then you will never have it.
-
Furthermore, there is no way to manually refresh the circuit selected to save the image (as opposed to the one used to view it), so if you do recognize this bug, and you have a bad image saving circuit currently open, then you have to wait 10 minutes to hopefully get a better one.
Tor Browser should use the same circuit to download an image as the one that it uses to actually display it to you in the browser to prevent these errors.
(This also applies to viewing the source code of pages.)
Trac:
Username: fufufu