News for hackers. Stuff that matters.
Re:Multiple vulnerabilities in parameter parsing in Action Pack by sergiotapia on Tuesday January 08, 2013 @03:29PM (#5028297)
As a newcomer to the Rails ecosystem all these posts of vunlerabilities and open doors leaves a bad taste in my mouth.

God know I love programming in Ruby now, but is Rails really that insecure?

Re:Multiple vulnerabilities in parameter parsing in Action Pack by jrabone on Tuesday January 08, 2013 @03:43PM (#5028389)
Who'd have thought it? Hugely dynamic language turns out to be difficult to audit or analyse for security issues.

It was never about Java(C, C++) vs. Ruby despite what fanboys on either side made out. It was about conservative vs. devil-may-care. All that "convenience" and "it's so clean" came at the price of a whole load of code executed behind the scenes. You didn't write it, and the Gods of TDD preached that you don't need to test it because that's Someone Else's Problem. Auditing it is nearly impossible not least because it's a moving target, so you either get stuck in a backwater of obsolete versions that once got audited and approved or you live on the bleeding edge constantly (and DevOps hate you forever).

FWIW we (large satnav company) prototyped the last major service in Rails (actually a one-man hack proof of concept) then implemented it in production in Scala (and that was a bridge too far for a lot of people) because no-one wanted to run Rails in production.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by phillmv on Tuesday January 08, 2013 @03:48PM (#5028409)
This is a straw man.

These kinds of issues are open to all software.

I'm happy you work in the kind of place that audits all of its software, though. I'm sure you've all read through all of Hibernate, Spring and not to mention all the .NET framework code.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by revelation on Tuesday January 08, 2013 @04:06PM (#5028520)
That is a straw man. Nobody claims there are not issues in other software.

The claim here is that people in dynamic languages tend to misuse that and write all sorts of magic that are pure gold for 10-line snippets but open up a vast attack surface, like building completely arbitrary objects from string input.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by papsosouid on Wednesday January 09, 2013 @11:05AM (#5032160)
>These kinds of issues are open to all software

Really? Could you show me how I could possibly create such a hole in a language like ocaml or haskell?

Re:Multiple vulnerabilities in parameter parsing in Action Pack by chimeracoder on Wednesday January 09, 2013 @08:45PM (#5034791)
> Could you show me how I could possibly create such a hole in a language like ocaml or haskell?

First you'd have to write the equivalent of Rails in Haskell (I'm not talking about an MVC framework, but something as large, complex, and featureful.)

Re:Multiple vulnerabilities in parameter parsing in Action Pack by papsosouid on Thursday January 10, 2013 @11:46AM (#5037964)
No, I am asking how you could actually create this vulnerability in haskell at all. No framework required, just actively, intentionally trying to create this hole.
Re:Multiple vulnerabilities in parameter parsing in Action Pack by bri3d on Tuesday January 08, 2013 @04:16PM (#5028569)
Here's a very, very similar exploit from last year... in a popular enterprise Java stack:

http://websec.wordpress.com/2012/01/04/multiple-vulnerabilit...

Re:Multiple vulnerabilities in parameter parsing in Action Pack by pacala on Tuesday January 08, 2013 @11:41PM (#5030194)
> The value of a parameter id was reflected to the HTTP response

The link you posted illustrates that it is unfortunate that Java supports reflection, and even more unfortunate that various "enterprise" software stacks abuse reflection in ever more creative ways. Stay away of Java reflection and/or use C/C++, and you'll avoid this kind of vulnerabilities.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by senorprogrammer on Tuesday January 08, 2013 @04:46PM (#5028704)
This isn't about languages; what the language gives the language can take away. This is about diligence, responsiveness, and transparency.

Rails will always have zero-day security issues; I'd hazard that all web apps of any notable size will. What matters most to me is how the core team and community respond on those three criteria above.

Lately the Rails team has been performing exceptionally.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by mtrimpe on Tuesday January 08, 2013 @04:07PM (#5028526)
Wait, which one of us are you?
Re:Multiple vulnerabilities in parameter parsing in Action Pack by jrabone on Wednesday January 09, 2013 @07:05AM (#5031144)
One of the troublemakers on a small island :-)

You've escaped anyway.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by m0nastic on Tuesday January 08, 2013 @03:43PM (#5028386)
All software has bugs, and the subset of bugs which turn out to be security vulnerabilities is borderline asymptotic.

That's not to say all frameworks are created equally secure, but the differences have more to do with the culture around the project than any technical decisions (minus some very specific language-related issues).

Rails is a big, public project; with many years now of being used by a sizable number of people. There will be more security vulnerabilities discovered, hopefully they'll be addressed quickly and communicated well (which this one seems to be).

That's a long-winded way of saying to be cautious with picking some other framework because it has less security vulnerabilities reported, that almost certainly has no bearing on it being more secure.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by phillmv on Tuesday January 08, 2013 @03:38PM (#5028362)
Security is a process; what matters is how people respond to new vulnerabilities. I'm naturally biased pro-Rails, but so far I don't feel uncomfortable with how it has been handled.

I can't comment on how on-the-ball the Rails security team is, but I can say it's really easy to update your apps.

It's also relative to your alternatives. It's way safer than not using a framework. Is it safer than Django? That's kind of unknowable; maybe, maybe not.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by benmmurphy on Tuesday January 08, 2013 @04:00PM (#5028482)
I've worked with other vendors. The rails security team is the best I've worked with. The major positives:

* Quick turn around. I have another vendor where it takes up to 3 months to get stuff fixed. :(

* They give you a patch to review before releasing publicly. This is very important and gives researchers a chance to fix any problems with the patch. With another vendor their fix missed a really obvious attack vector and anyone who diffed the code would have been given a free zero day vulnerability. :(

Re:Multiple vulnerabilities in parameter parsing in Action Pack by dasil003 on Tuesday January 08, 2013 @05:31PM (#5028960)
As an average joe web dev I also found the security team very easy to work with when I discovered a vulnerability. In that case I worked directly with them to create the patch that was released as Rails 2.3.5. It was something like 48 hours from the time I discovered it to the release.
Re:Multiple vulnerabilities in parameter parsing in Action Pack by nathan_f77 on Tuesday January 08, 2013 @03:53PM (#5028445)
Please know that Rails is definitely very secure, and it has gone through many years of testing and review. However, no framework is immune. We should be grateful that the bug was found, patched, and notified, instead of being silently exploited by some black-hat who discovered it first.

The following is speculation, but keep in mind that this bug may have been found because the Rails team has been looking for security holes similar to the exploit that was found a few days ago.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by batiste on Wednesday January 09, 2013 @04:21AM (#5030816)
"Please know that Rails is definitely very secure"

It might be secure NOW. But restrospectively, it never was before this patch.

Re:Multiple vulnerabilities in parameter parsing in Action Pack by robconery on Tuesday January 08, 2013 @03:34PM (#5028327)
All web frameworks have vulnerabilities - the key is how quickly the team responds. For that, I love Rails (and @tenderlove)
Re:Multiple vulnerabilities in parameter parsing in Action Pack by sergiotapia on Tuesday January 08, 2013 @05:35PM (#5028973)
I agree completely, it's just that this error seems so obvious and dangerous that it's odd it hasn't been caught for over 7 years.

ps: I love Tekpub! Are there any plans for some new Rails videos? I purchased the Rails 3 series but it's a bit outdated, given how fast Rails moves. Would purchase a series on Rails 4 day-one. :)

Re:Multiple vulnerabilities in parameter parsing in Action Pack by kurtfunai on Tuesday January 08, 2013 @03:46PM (#5028405)
I'm in a similar boat. I've just began with Rails in the last six months, and I've really been enjoying it. These vulnerabilities are unnerving but I am comforted by the visibility of the announcements. The community seems to get the message out very quickly when an exploit is found/patched. My entire Twitter feed is filled with Rails developers telling others to upgrade immediately, and HN has multiple new posts about it.
Re:Multiple vulnerabilities in parameter parsing in Action Pack by pjungwir on Tuesday January 08, 2013 @03:51PM (#5028429)
If you read the insinuator.net article posted elsewhere on this thread, you'll see that Java (Struts), PHP, and Python have all had their own remote-code-execution vulnerabilities over the years.
Re:Multiple vulnerabilities in parameter parsing in Action Pack by j-kidd on Wednesday January 09, 2013 @03:36AM (#5030729)
You are comparing library with language here. Rails is vulnerable to remote code execution. This is comparable to something like:

https://bugzilla.redhat.com/show_bug.cgi?id=854757 - CVE-2012-4406 Openstack-Swift: insecure use of python pickle()

Re:Multiple vulnerabilities in parameter parsing in Action Pack by nateberkopec on Tuesday January 08, 2013 @05:10PM (#5028845)
The number of security patches to a popular open source project has only a very weak correlation to the actual number of security holes.