You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[security problem] Downloads code archives without checking fingerprints #8568
In many places the function ports.fetch_project downloads code archives without checking fingerprints. This makes such downloads susceptible to MITM attacks.
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?
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.
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.
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.
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.
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.
Activity
Check hash when downloading ports
Check hash when downloading ports (#8788)
sbc100 commentedon Jun 18, 2019
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 pullfrom any github repo?yurivict commentedon Jun 18, 2019
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.
sbc100 commentedon Jun 18, 2019
Of course, mitigate was perhaps too strong a word there :)
I was thinking that most users get emscripten via
git fetchso 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.quantum5 commentedon Jun 18, 2019
I think the more realistic threat is a malicious user deliberately uploading a bad tarball to github/sourceforge.
yurivict commentedon Jun 18, 2019
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
yurivict commentedon Jun 18, 2019
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.
yurivict commentedon Jun 18, 2019
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.
Check hash when downloading ports (emscripten-core#8788)