Live data from Hacker News

Multiple vulnerabilities in parameter parsing in Action Pack

groups.google.com

101–110 of 294 posts

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#101
post #94
post #89

I hope in consequence of this incident the Rails-team will build in an automatic security-update notification mechanism. I'd like my apps to poll rails.org (or whatever) every few minutes and by default shutdown hard when an incident like this is announced.

You can set up a system like Debian or Ubuntu to automatically install security updates.

I want my rails instances to shutdown within minutes of an announcement, not hours or days.

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#102
post #93

Earlier quoted context omitted.

Getting continuous errors on deploy during the bundle stage like so: /usr/lib/ruby/1.9.1/rubygems/remote_fetcher.rb:215:in `fetch_http': bad response Not Found 404 (http://bb-m.rubygems.org/quick/Marshal.4.8/activesupport-3.2.11.gemspec.rz) Is this because rubygems.org is being nailed?

I'm getting exactly the same thing. Glad to know it's not just me.

For the time being I've rolled back the gem changes and applied the suggested hotfix (removing XML from the default params parsers). I've been trying for a solid hour to get a deploy out with the updated rails version, and it's just not having any of it.

Edit: finally got it out. This deploy model is completely screwed, though. It just shouldn't be normal to have a service like rubygems.org in the daily deploy loop. This is absolutely not a knock on the fantastic volunteers that run it - they simply shouldn't be dealing with this sort of load spike.

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#103
post #94
post #89

I hope in consequence of this incident the Rails-team will build in an automatic security-update notification mechanism. I'd like my apps to poll rails.org (or whatever) every few minutes and by default shutdown hard when an incident like this is announced.

You can set up a system like Debian or Ubuntu to automatically install security updates.

I'm guessing that might not work great considering last time I checked almost no one was using the debian packages due to antipathy between the debian maintainers and rubygems folks. Any know of any progress on that front?

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#104
post #99

Earlier quoted context omitted.

If you've recently started a new Rails project (or are thinking about it), you should use strong_parameters right off the bat!

Why is strong_parameters not the only way? Rails is pretty opinionated in many other respects...

It will be the default in rails 4... so soon : )

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#105
post #99

Earlier quoted context omitted.

If you've recently started a new Rails project (or are thinking about it), you should use strong_parameters right off the bat!

Why is strong_parameters not the only way? Rails is pretty opinionated in many other respects...

It was opinionated to use attr_accessible until a better approach came along. Beginning in 4.0 it will be opinionated to use strong_parameters, but they can't just take attr_accessible away because a lot of people are upgrading apps.

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#106
post #94

Earlier quoted context omitted.

You can set up a system like Debian or Ubuntu to automatically install security updates.

I'm guessing that might not work great considering last time I checked almost no one was using the debian packages due to antipathy between the debian maintainers and rubygems folks. Any know of any progress on that front?

I'm saying for Debian packages in general; I don't think anyone uses the Ruby packages in Debian/Ubuntu. It's a bit sad that people got in such a tizzy over it, because the Ruby people could learn a lot from Debian about packaging stuff and managing it over time.

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#107
So I've applied the workaround, which is great, but how do I test that the workaround is indeed working?

I realize that providing an in-depth answer is tantamount to publishing an exploit how-to, but some reasonable way to privately test this would be very useful.

Maybe a "simple" URL tester hosted by a trusted Rails source (e.g. rubyonrails.org)? Ok, has the obvious issue of showing the world who they should target, but maybe you can riff on that theme?

Auditing and stuff you know. For some reason people in charge get really upset when all our base are belong to the bad guys.

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#108
post #101
post #94

Earlier quoted context omitted.

You can set up a system like Debian or Ubuntu to automatically install security updates.

I want my rails instances to shutdown within minutes of an announcement, not hours or days.

Headline of the future:

> Tens of Thousands of Rails Applications Remotely Disabled Following Rails.org Intrusion

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#109

I'm just commenting here so that people can have a central thread for love / hatred. ;-) But seriously. This is extremely critical, please upgrade!

Hey, Everyone! Leave a note (and, if you want, a hug picture) to say thank to Aaron for his hard work. This isn't any easy responsibility. http://www.hugboard.com/e5f69b274a/contribute

Re: Multiple vulnerabilities in parameter parsing in Action Pack

#110
post #108
post #101

Earlier quoted context omitted.

I want my rails instances to shutdown within minutes of an announcement, not hours or days.

Headline of the future: > Tens of Thousands of Rails Applications Remotely Disabled Following Rails.org Intrusion

Yes, that is to be expected - and absolutely worth it.

The aftermath of an incident like the current one is a lot more expensive than an unplanned downtime.

Post reply on HN