News for hackers. Stuff that matters.
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by rmc on Tuesday July 10, 2012 @12:30PM (#4224612)
Too often you see advice like that. And this is supposed to be from technical users who know about security. And we wonder why mundanes click on spyware scams…
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by JonnieCache on Tuesday July 10, 2012 @01:31PM (#4225016)
How is it any different from downloading any other code and running it?

Are you saying you audit every piece of unsigned code you run?

I admit that putting bit.ly into the chain of trust is quite a bold step, but is it really that different to, say, the rubygems server? Or your wireless router?

EDIT: also, LOL at "mundanes."

Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by rmc on Tuesday July 10, 2012 @02:08PM (#4225214)
You can check checksums. You can use a package manager which has been gpg signed and reviewed by people smarter than you. You could download it over https.

You're downloading and running in one go. If someone puts a badfile up for 1 minute, then restore it to normal, and you get hosed, it's pretty hard to check that, because the download link looks fine now. You cannot try to figure out what happened or who did it to try to track down the culprit.

Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by JonnieCache on Tuesday July 10, 2012 @02:12PM (#4225235)
Checksums are only for transmission errors. If someone can change the code, they can change the checksum.

Indeed, using signed code is massively preferable, and it is increasingly common.

I was about to write that you can't operate running only signed code, but if you consider git hashes a form of signing then I suppose you largely can these days. However, running unsigned code is still so common that I don't think you can really single out people who pipe curl into sh.

Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by TylerE on Tuesday July 10, 2012 @01:35PM (#4225031)
Imagine Bit.ly gets backdoored, and that shortlink is repointed at a script that just contains rm -rf /
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by JonnieCache on Tuesday July 10, 2012 @01:40PM (#4225059)
Imagine your wifi box gets backdoored.

Imagine your ISP's router gets backdoored.

Imagine if the server you got your bash from gets backdoored.

Imagine if the rails repo gets backdoored.

Imagine if the plant where apple images the macbook HDDs gets backdoored.

Imagine all the people, living for today...

(But yeah, personally, I'd forgo the bit.ly part as its unnecessary.)

Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by pavel_lishin on Tuesday July 10, 2012 @03:38PM (#4225699)
I could also imagine that someone wired up my car to explode, but there's a reasonable level of paranoia. Link shorteners are fairly frequently used to hide the true destination of a link.

Although, I wonder how hard it would be to set up some text with CSS that looks like one string, but is actually another. e.g. the user would see

    https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb
but when copied-and-pasted is revealed to actually be something like

    https://raw.github.com/mxel/homebrew/master/Library/Contributions/install_homebrew.rb
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by WiseWeasel on Tuesday July 10, 2012 @02:24PM (#4225300)
Libya has traditionally been known as an incredibly corrupt regime, but since Ghaddafi is gone, who knows how things are run these days. My guess is, like it was before they gave him the boot, if you slip the right guy some cash, you can change that link all you want. Might be a different guy though, probably closer to the source, and the price is likely to be a lot lower now that there are less beaks to wet.
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by kaonashi on Tuesday July 10, 2012 @05:54PM (#4226424)
You can open it up in web browser and view the code. Goes right here: https://raw.github.com/mxcl/homebrew/master/Library/Contribu.... I'm not sure how it could be more transparent.
Re:Installing Rails on a Mac Shouldn't Be As Hard As It Is by rmc on Tuesday July 10, 2012 @02:09PM (#4225219)
Or even better, the Lybian goverment siezes it.