Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of integrity verification of downloaded external dependencies #53

Open
mensfeld opened this issue Jan 22, 2021 · 0 comments
Open

Comments

@mensfeld
Copy link

Hey,

My name is Maciej Mensfeld and I run a research security project called diffend.io.

I've noticed, that this library downloads some external resources and uses them. While it's a totally common pattern, what is lacking here is integrity verification.

You could verify the integrity of the downloaded files before using it by comparing the file hash to a hardcoded, expected file hash. This is essentially what package managers do to verify the integrity of downloaded packages.

Doing this would prevent attack scenarios in which Rust binary from Cargo is manipulated.

I do understand it's a bit more work but this would improve security of this gem. I noticed many other gems use it and it may be beneficial.

Have a great day :)

def download_versioned_binary(uri, version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant