News for hackers. Stuff that matters.
Re:What The Rails Security Issue Means For Your Startup by chimeracoder on Thursday January 31, 2013 @11:24AM (#5145687)
> The bug in the YAML parser was reported and the author of the YAML library genuinely couldn't figure out why this mattered or how it could be bad.

Is that seriously what happened? It sounds oddly similar to the Rails issue from about a year ago (the one in which the reporter was able to commit to master on Github), even though I believe that was a separate set of developers altogether.

If so, then that might suggest a larger community/cultural issue, which makes me wonder what other exploits exist but haven't been reported (publicly) yet...

Re:What The Rails Security Issue Means For Your Startup by pifflesnort on Thursday January 31, 2013 @11:31AM (#5145750)
> Is that seriously what happened?

Surprisingly, yes: https://github.com/tenderlove/psych/issues/119

And the RubyGems folks are trying to handle this with whitelisting specific classes that the YAML parsing will still be allowed to instantiate:

https://github.com/rubygems/rubygems.org/pull/516/files

Re:What The Rails Security Issue Means For Your Startup by purephase on Thursday January 31, 2013 @11:42AM (#5145804)
As a temporary workaround until Psych is updated. At least that's how I read it.

We can either sit around throwing stones at them or pull up our sleeves and help. I'm not sure what there is to gain with the former.

Re:What The Rails Security Issue Means For Your Startup by hilko on Friday February 01, 2013 @03:17PM (#5153179)
I agree with the sentiment to help and not just throw stones, but I think all the outrage and whatnot is very useful: it makes this kind of stuff less likely to happen.
Re:What The Rails Security Issue Means For Your Startup by tomjen3 on Thursday January 31, 2013 @11:59AM (#5145891)
Rails needs to die. It is super nice to code in (for a certain class of problems, ie. CRUD apps) and the language is awesome but it is too big and insecure to use.
Re:What The Rails Security Issue Means For Your Startup by jroes on Thursday January 31, 2013 @12:13PM (#5145975)
I'm willing to bet if you put someone like benmmurphy, ptacek, or homakov in your codebase he'll have you begging for a web framework in hours.
Re:What The Rails Security Issue Means For Your Startup by newman314 on Thursday January 31, 2013 @12:55PM (#5146225)
I wonder if various companies pooled money for a comprehensive audit of rails by ptacek etc., one would think that's a win-win for all.
Re:What The Rails Security Issue Means For Your Startup by thibaut_barrere on Thursday January 31, 2013 @01:25PM (#5146430)
I wondered exactly the same thing, a security-chase kickstarter or similar.
Re:What The Rails Security Issue Means For Your Startup by randomdata on Thursday January 31, 2013 @01:07PM (#5146309)
Anything you implement to replace the functionality missed by not using Rails will be, statistically, just as insecure. Arguably, even more-so because you will no doubt lack the peer review a large project like Rails benefits from.
Re:What The Rails Security Issue Means For Your Startup by romaniv on Thursday January 31, 2013 @01:15PM (#5146351)
Unless you implement it in a fundamentally simpler way.
Re:What The Rails Security Issue Means For Your Startup by tomjen3 on Friday February 01, 2013 @06:48PM (#5154319)
I don't think so. Rails has to cover all cases, you just have to code the few cases that you actually use.

And even if you get it wrong, you get it wrong in a different way. That might mean that you are technically more at risk, but so long as the attack is focused on getting as many targets as possible, rather than you explicitly, then that is arguably a great strategy: the cost of adapting an already existing attack to target a novel target is going to be astronomically high, versus using an already existing vulnability. If you are refining neuclear material for Iran, you are going to need all the protection you can get; if you are just another start-up you just need not to be vulneable to the latest drive-by exploit.

Re:What The Rails Security Issue Means For Your Startup by jaequery on Thursday January 31, 2013 @01:27PM (#5146450)
rails don't need to die, but seeing how ruby devs like bashing other languages, this event seems to me like karma.
Re:What The Rails Security Issue Means For Your Startup by squidsoup on Thursday January 31, 2013 @05:19PM (#5147859)
Can we please try to avoid making generalisations like this? Yes, the ruby community has some very vocal contributors with very questionable social skills. Please don't assume that all ruby developers are egotistical hipster hackers. The creator or Ruby, Matsumoto Yukihiro is one of the most softly spoken and humble individuals I have encountered in technology. We can all learn by his example.
Re:What The Rails Security Issue Means For Your Startup by purephase on Thursday January 31, 2013 @01:51PM (#5146582)
Some ruby devs do, yes. Sadly, this feudalistic approach is prevalent in our industry which hurts all of us. It is probably the reason we have to keep re-learning the same concepts over-and-over again.

There is no karma here, there is just a race to the bottom for all of us. I thought the point of OS was for us all to group together and find and address these issues?

You know, kumbaya and all that...

Re:What The Rails Security Issue Means For Your Startup by purephase on Thursday January 31, 2013 @11:30AM (#5145741)
Different issue altogether. It was mass-assignment wherein the default Rails config did not have the whitelist enabled by default. The howto is here:

http://homakov.blogspot.ca/2012/03/how-to.html

Re:What The Rails Security Issue Means For Your Startup by tomjen3 on Thursday January 31, 2013 @11:57AM (#5145885)
Actually it is the same issue as basically all other security issues in web programming (attack on crypto aside):

Failure to blacklist non-conforming input.

Really, it is that simple and that complicated.

Re:What The Rails Security Issue Means For Your Startup by dos1 on Thursday January 31, 2013 @12:15PM (#5145989)
Wouldn't whitelisting conforming input be a better approach? I realize it may be more difficult, but wouldn't that be more secure?

Edit: I'm genuinely interested - I always try and whitelist things when I'm building software. Although I have next to no background when it comes to security in particular.

Re:What The Rails Security Issue Means For Your Startup by purephase on Thursday January 31, 2013 @12:25PM (#5146046)
Whitelisting is what Rails did to get around the mass assignment issue. It was solved for awhile, it just was not the default configuration setting.

Whitelisting is what the rubygems folks are doing to work around this problem until a better implementation is put in-place in the YAML parser.

Generally, it is a better solution but it is more difficult and can break a lot of dependencies if not implemented correctly.

Re:What The Rails Security Issue Means For Your Startup by tomjen3 on Friday February 01, 2013 @06:49PM (#5154324)
Stupid me. I meant to write whitelisting.

Yes, you are absolutely right.

Re:What The Rails Security Issue Means For Your Startup by chimeracoder on Thursday January 31, 2013 @11:32AM (#5145757)
I know it was a different vulnerability - I was asking more whether the same developer(s) was/were responsible, since this seems to be a comment pattern that I'm hearing with regards to the initial response to the vulnerabilities.
Re:What The Rails Security Issue Means For Your Startup by homakov on Thursday January 31, 2013 @04:42PM (#5147679)
> It sounds oddly similar to the Rails issue from about a year ago (the one in which the reporter was able to commit to master on Github)

Hey, yes, yaml bug is _very_ similar. Whitelist is better than no list at all