News for hackers. Stuff that matters.
Re:Someone forgot to renew NodeJS.org by dfc on Saturday September 29, 2012 @12:54PM (#4590105)
I hope the node installation never did one of these:

  curl -s -L http://nodejs.org/some-script.sh |sh 
I have never understood why people install software like that. I can not remember which project it is that uses this in the installation.
Re:Someone forgot to renew NodeJS.org by jaredonline on Saturday September 29, 2012 @12:58PM (#4590121)
Homebrew, rbenv, rvm, to name a few. Never understood it either. If you could get ahold of a domain write a malicious script at /some-script.sh, you could do a lot of damage.
Re:Someone forgot to renew NodeJS.org by halvsjur on Saturday September 29, 2012 @01:07PM (#4590152)
I agree that it feels insecure, but is there really a difference between this and downloading and running files from a .tar.gz or installing a .deb for example?
Re:Someone forgot to renew NodeJS.org by dfc on Saturday September 29, 2012 @01:14PM (#4590175)
Yes.

apt-get:

  $ ls -l /etc/apt/trusted.gpg.d/

Source Installation:

  $ wget http://nmap.org/dist/sigs/nmap-6.01.tgz.asc
  $ wget http://nmap.org/dist/nmap-6.01.tgz
  $ gpg nmap-6.01.tgz.asc
Re:Someone forgot to renew NodeJS.org by willholloway on Saturday September 29, 2012 @01:49PM (#4590273)
This is an important part of why Debian and its derivatives are superior to OS X for web development. If you like Mac hardware like I do, at least run a Linux distro as a virtual machine and save yourself the trouble of Homebrew or its contemporaries.
Re:Someone forgot to renew NodeJS.org by sgt on Saturday September 29, 2012 @01:46PM (#4590270)
The point is that most people don't do this.
Re:Someone forgot to renew NodeJS.org by dfc on Saturday September 29, 2012 @01:55PM (#4590295)
Its built into apt. Unless you are suggesting that most people do:

  # apt-get --allow-unauthenticated ...
Re:Someone forgot to renew NodeJS.org by foobarqux on Saturday September 29, 2012 @01:09PM (#4590159)
debs are authenticated.
Re:Someone forgot to renew NodeJS.org by jaredonline on Saturday September 29, 2012 @01:57PM (#4590306)
With a .tar.gz you can verify a checksum.
Re:Someone forgot to renew NodeJS.org by wwwtyro on Saturday September 29, 2012 @02:01PM (#4590327)
Would adding a hash check for some-script.sh solve the security issue?
Re:Someone forgot to renew NodeJS.org by oconnore on Saturday September 29, 2012 @02:22PM (#4590375)
A published hash sum on its own only protects against non-malicious errors in the download. This is of limited use, since even regular HTTP is verified with a 16 bit CRC checksum.

Distributing a hash check over HTTPS would offer some protection against man in the middle style attacks, to the extent that TLS protects against man in the middle attacks, but accomplishes nothing if the server has been compromised.

Distributing a signature of the download gives stronger protection, because the private key can be kept offline and encrypted except when in use. Breaking into a server and overwriting a few files is easier than breaking into someone's laptop in the brief moment where they unlock their keypair to sign a release.

Re:Someone forgot to renew NodeJS.org by joshuacc on Saturday September 29, 2012 @02:36PM (#4590425)
I don't know if it did so in the past, but it doesn't currently.