News for hackers. Stuff that matters.
Re:Is curl|bash insecure? by damm on Friday September 25, 2015 @03:15PM (#10280103)
You can programmatically add as much verification into your shell script to verify it's not tampered. All the Attacker has to do is replace your shell script with their own to neuter everything you did.

You will never escape the insecurity of this because you are connecting to another server and accepting whatever output it gives you to run under a bash process. They can poison your process via DNS cache; using a transparent proxy to replace the content. Don't assume that just because they are using HTTPS that it removes all attack vectors.

This is lazy; and insecure. Ship a proper package in a proper repo that people can programmatically add using Chef or Puppet or whatever their moment inspires.

P.S. don't create curl https://uninstall.sandstorm.io | bash

Re:Is curl|bash insecure? by kentonv on Friday September 25, 2015 @04:05PM (#10280386)
That's why the PGP-verified install comes with these instructions for verifying the installer script:

https://docs.sandstorm.io/en/latest/install/#option-3-pgp-ve...

Re:Is curl|bash insecure? by mjg59 on Friday September 25, 2015 @04:19PM (#10280461)
HTTPS does remove those attack vectors. That's kind of the point.
Re:Is curl|bash insecure? by munin on Friday September 25, 2015 @05:44PM (#10280890)
https with a modern transport security stack that uses HPKP, HSTS and cert pinning, sure. curl doesn't use those, though.
Re:Is curl|bash insecure? by damm on Friday September 25, 2015 @07:17PM (#10281305)
and when curl supports it; not every distro will ship it. Might take a decade for it to be fully supported.