The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
RubyGems 0.9.0 and earlier installation exploit

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Hodel

Posts: 660
Nickname: drbrain
Registered: Mar, 2006

Eric Hodel is a long-time Rubyist and co-founder of Seattle.rb.
RubyGems 0.9.0 and earlier installation exploit Posted: Jan 21, 2007 2:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eric Hodel.
Original Post: RubyGems 0.9.0 and earlier installation exploit
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Hodel
Latest Posts From Segment7

Advertisement

Problem Description:

RubyGems does not check installation paths for gems before writing files.

Impact:

Since RubyGems packages are typically installed using root permissions, arbitrary files may be overwritten on-disk. This may lead to denial of service, privilege escalation or remote compromise.

Workaround:

No known workarounds

Solution:

  1. Upgrade to RubyGems 0.9.1

  2. Apply one of the following patches:

  3. Note:

    Remote installations via Rubyforge will be disabled in the near future for versions of RubyGems earlier than 0.9.1, even for patched versions of RubyGems. Local installations will continue to work, however.

    Thanks to Gavin Sinclair for finding and reporting this problem.

    Testing your updated RubyGems:

    Installing rspec-0.7.5 will give an InstallError on a patched version of RubyGems:

    $ gem install rspec --version 0.7.5
    ERROR:  While executing gem ... (Gem::InstallError)
        attempt to install file into "../web_spec/web_test_html_formatter.rb"

    An updated rspec (0.7.5.1) has already been released.

Read: RubyGems 0.9.0 and earlier installation exploit

Topic: Wrapping a C Function as a Block Previous Topic   Next Topic Topic: Rails 1.2 1.2.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use