Skip to content

[security issue] You have to check file fingerprints after you download them #416

Closed

Description

@yurivict

The function get_remote_file (here https://github.com/imageio/imageio/blob/master/imageio/core/fetching.py#L35) downloads files from the Internet without checking their fingerprints. For example, it downloads the ffmpeg executable.

Please note that just having https in the URL isn't a guarantee that the file is downloaded from the intended location. https certificate verification can be subverted, and can't be relied on. One example is that governments can subvert it systematically: https://news.ycombinator.com/item?id=10663843 But there could also be compromised certification authorities, and hacked connections.

You need to store and check cryptographic fingerprints of all downloaded files, or, better just depend on pre-installed executables. For example, ffmpeg packages exist on virtually all systems.

Activity

  1. almarklein commented on Dec 17, 2018

    @almarklein
    Member

    Thanks for the heads up. I agree. The ffmpeg plugin is `up for discussion](#406) right now, and this issue should be part of any new solution.

  2. almarklein commented on Feb 5, 2019

    @almarklein
    Member

    With #425 the binaries are distributed via the new imageio-ffmpeg library via pip.

  3. almarklein commented on Feb 5, 2019

    @almarklein
    Member

    Though the issue still stands for the avbin and freeimage downloads. I plan on using a similar approach for freeimage if this works out well. The avbin plugin will be deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions