News for hackers. Stuff that matters.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by zurn on Thursday January 10, 2013 @02:31AM (#5035941)
If you installed Rails from Ubuntu, you have to patch it by hand since they're not patching it.

Use the conversions.rb patch for 2.x from https://groups.google.com/forum/#!topic/rubyonrails-security...

"We're not patching it" statement: https://launchpad.net/bugs/320813

Re:Metasploit Rails 3 Remote Code Execution Hours Away by ZoFreX on Thursday January 10, 2013 @05:54AM (#5036351)
In my experience, using Ruby or gems from your package manager leads to headaches down the line - I'd highly recommend using bundler to manage your gems at the very least, and rvm or rbenv to manage rubies.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by potkor on Thursday January 10, 2013 @07:36AM (#5036578)
Does this also apply to end-users of Ruby apps that are just an apt-get away? I don't really want to learn all that stuff (and remember to redo it on all installs) just to use some tool that happens to be written in Ruby.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by mnutt on Thursday January 10, 2013 @04:45PM (#5039981)
I don't believe there are any rails-apps-as-packages in the official debian/ubuntu repositories, but if there were I assume they would use bundler to bundle their gems internally.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by zurn on Friday January 11, 2013 @01:20AM (#5041608)
Yes there are, in our case Redmine. A pretty popular piece of software I believe. In Debian it's in main and in Ubuntu it's in universe.

Re. bundler/gems, I don't know what those are - the file "core_ext/hash/conversions.rb" I hand-patched was from a package called ruby-activesupport-2.3 which is a dependency of the Rails package.

Re:Metasploit Rails 3 Remote Code Execution Hours Away by ZoFreX on Friday January 11, 2013 @08:28AM (#5042553)
It was redmine I was using when I had the issues actually. The real problem though was that I was trying to use a newer version of Redmine than was available in the repo, and I did still manage to satisfy the dependencies but upgrading my Ruby version broke literally everything.

I think if 100% of your eco system is from the package manager you would be fine, but if even a single component needs to come from outside I would reach straight for rvm and bundler (no prejudice against rbenv, rvm is just what I use)

Re:Metasploit Rails 3 Remote Code Execution Hours Away by mnutt on Tuesday January 15, 2013 @02:11PM (#5062205)
Gems are ruby packages, and bundler is a way to use specific versions in an app, independent of what versions are installed globally. I think bundler would be a good fit for redmine, just because you don't really gain anything other than disk space by being able to share ruby-activesupport-2.3 between apps.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by astrodust on Thursday January 10, 2013 @02:20PM (#5039094)
If you apt-get your gems you're doing it wrong.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by ZoFreX on Thursday January 10, 2013 @06:53PM (#5040515)
It shouldn't apply in that situation. My advice applies more to people developing or hosting ruby applications.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by andreaja on Thursday January 10, 2013 @03:27AM (#5036048)
Re:Metasploit Rails 3 Remote Code Execution Hours Away by fuzzix on Thursday January 10, 2013 @03:44AM (#5036078)
"We're not patching it"

That's not what was said. They don't maintain it.

Re:Metasploit Rails 3 Remote Code Execution Hours Away by zurn on Thursday January 10, 2013 @04:50AM (#5036198)
They did too - they're not patching it unless someone "from the community" comes, does the work and succesfully lobbies to get it sponsored. Which almost certainly won't happen in time (if at all). Have a look at the track record of security bugs in launchpad that apply to universe (aka "community maintained") packages.
Re:Metasploit Rails 3 Remote Code Execution Hours Away by bdonlan on Thursday January 10, 2013 @02:45AM (#5035977)
The bug you link is some kind of 3d-related bug, what does it have to do with Rails?
Re:Metasploit Rails 3 Remote Code Execution Hours Away by zurn on Thursday January 10, 2013 @04:47AM (#5036184)
Yep, paste fail, andreaja's link is the right one.