Skip to content

[security problem] Downloads code archives without checking fingerprints #8568

Closed

Activity

  1. added a commit that references this issue on Jun 12, 2019
    1aa57c9
  2. added a commit that references this issue on Jun 18, 2019
    e293d8c
  3. sbc100 commented on Jun 18, 2019

    @sbc100
    Collaborator

    Surely the use of https mitigates this risk? I agree is better to include hashes, but mostly for integrity checking and to detect unexpected content changes.

    If you are worried about man in the middle of github.com over https then aren't you exposed to this same risk every time you git pull from any github repo?

  4. yurivict commented on Jun 18, 2019

    @yurivict
    Author

    Surely the use of https mitigates this risk?

    Are you kidding?
    https can be subverted by providers, add-ons, government regulations, compromised certificate authorities, etc.
    Fingerprinting only depends on the integrity of the hash function, and the person who has created the fingerprint. This is a much more secure way to enforce file integrity.

  5. sbc100 commented on Jun 18, 2019

    @sbc100
    Collaborator

    Of course, mitigate was perhaps too strong a word there :)

    I was thinking that most users get emscripten via git fetch so those people are already exposed in this way. I believe emsdk also doesn't use hashes so those users are too. Might be worth fixing emsdk at least to use hashes.

  6. quantum5 commented on Jun 18, 2019

    @quantum5
    Member

    I think the more realistic threat is a malicious user deliberately uploading a bad tarball to github/sourceforge.

  7. yurivict commented on Jun 18, 2019

    @yurivict
    Author

    I am used to the FreeBSD packaging framework, and it strictly requires fingerprints for all files.

    Most users should be installing emscripten from the packages on their corresponding OSes. I know, some of them are slow, or eben non-existent (like on windows). But they all have mailing lists, you should request packages to be created through these lists.

    Currently available ports: https://repology.org/project/emscripten/versions

  8. yurivict commented on Jun 18, 2019

    @yurivict
    Author

    I think the more realistic threat is a malicious user deliberately uploading a bad tarball to github/sourceforge.

    This too, but in Kazakhstan, for example, the government mandates that all users have government certificate installed, so that they can look at every request's content and can seamlessly substitute every downloaded file.

    Fingerprints still stand up to that, and https doesn't.

  9. yurivict commented on Jun 18, 2019

    @yurivict
    Author

    I also believe that there are some compromised certificate authorities among the hundreds of them that browsers use to validate https. One needs to trust hundreds of entities that one has never personally encountered, some of which have been revoked before. This is quite a questionable proposition to trust everybody in such list.

  10. added a commit that references this issue on Dec 23, 2020
    febf67e
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