3 ms·
Keep in mind whatever script you run through this could download additional unverified code.
by tlrobinson 12y ago
Keep in mind whatever script you run through this could download additional unverified code.
- _prometheus 12y agoGreat point!! -- \o read this everyone o/ -- Please please dont use hashpipe thinking you'll be super safe about everything. It only raises the bar a bit! It solves my biggest gripe with most `curl <url> | sh` things, which is that any MITM can own my machines without compromising the origin http servers. (of course, if the HTTP server + page you got the checksum from is owned too-- good luck!).
- deleted 12y ago[deleted]
- jamiesonbecker 12y agoGood point - of course, this would mean that the additional code was vetted (or at least consciously included!) by someone who cared enough to use hashpipe in the first place.
- DanielDent 12y agoNot only could it, downloading additional code is often the entire point. Additionally, it's common for the installer to include things like version numbers, which means the hash will change with each release. Meteor suffers from the "|sh" install pattern. Creating a Docker packaging of it that felt safe required a lot of extra work as a result: 1) Transforming the installer file into a canonical form free of version numbers. This verifies if the assumptions made about the installer are still valid. It also enables a "latest" tag which installs whatever MDG has currently published. 2) The installer is patched so it checksums the tarball it downloads. (To be clear, I'm aware of areas both upstream and downstream in the process where unverified code could sneak in easily. But at least I can feel good about the part I'm responsible for.)