News for hackers. Stuff that matters.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by jarin on Thursday April 07, 2011 @02:59PM (#2420749)
Well, just to play devil's advocate, do you read through the source code of MySQL, Apache, or RPM packages every time you install them?

With things like this that come from reputable sources, it's not unreasonable to put some trust in the source and some trust in the smaller percentage of developers who actually read the source code.

Re:Introducing Pow, a zero-configuration Rack server for Mac... by BCM43 on Thursday April 07, 2011 @05:12PM (#2421231)
As other have pointed out above, the point is not where you think it is coming from, it is where it is actually coming from. Someone could easily man in the middle the connection and change the code you download, so your computer ran whatever they wanted you to run.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by jarin on Thursday April 07, 2011 @07:42PM (#2421713)
You say someone could "easily" man-in-the-middle the connection, but is it really that easy? Or likely? (Assuming you're not installing it from a random public wifi hotspot.)

Even so, assuming you want to be extra careful (you're installing it on a development machine with highly sensitive information), it's not that difficult to clone the repo and edit the install script to install from your local copy of the repo.

Re:Introducing Pow, a zero-configuration Rack server for Mac... by kemiller on Thursday April 07, 2011 @03:02PM (#2420775)
I don't think a brand-new webserver hack counts as a reputable source just yet.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by jarin on Thursday April 07, 2011 @03:06PM (#2420795)
I think 37signals counts as a reasonably reputable source if you're a Rails developer.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by kemiller on Thursday April 07, 2011 @04:24PM (#2421061)
Oh, didn't notice that.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by pdenya on Thursday April 07, 2011 @03:25PM (#2420869)
Agreed. The command made me nervous until I saw the 37signals logo. After that, I didn't think twice.
Re:Introducing Pow, a zero-configuration Rack server for Mac... by jarin on Thursday April 07, 2011 @03:41PM (#2420931)
I mean yes, it does take a whole minute to verify that the pow code repo is on 37signals' GitHub organization account and that the repo references http://pow.cx.

Although I suppose it is possible that 37signals' GitHub account was hacked and someone maliciously designed a convenient Rack server and website with the intent of targeting the lucrative Rails developer demographic, or that the package the installer downloads is an insidious 37signals trojan not built from the code at the public repo.

Point taken.

Re:Introducing Pow, a zero-configuration Rack server for Mac... by cturner on Friday April 08, 2011 @05:18AM (#2423053)
This scripts vs binaries situation reminds me of something in the linux kernel: you can't use the sticky bit against scripts. When you add it, it shows as sticky in 'ls -lF' but doesn't work when you go to run it. Sticky bit is only for binaries.

It seems stupid, but on the other hand I never see people abusing the sticky bit, possibly as a result of the higher barrier to entry.

On the other hand, it causes me inconvenience every time I want to do something legitimate with it.

Re:Introducing Pow, a zero-configuration Rack server for Mac... by skidooer on Friday April 08, 2011 @01:48PM (#2424880)
Scripts with interpreters expose a race condition vulnerability whereby an attacker can quickly replace the script with their own before the interpreter, running with higher level privileges, finishes loading.

It is not really a script vs. binary issue so much as protecting against how scripts are loaded.