ie8 fix
madison

Zero Day

Ryan Naraine, Emil Protalinski and Dancho Danchev

Apple security team finds code execution holes in Ruby

By | June 20, 2008, 11:14am PDT

Summary: A member of Apple’s security team has discovered multiple serious security vulnerabilities in Ruby, the popular open-source scripting language. According to an advisory on the Ruby project site, Apple’s Drew Yao reported at least six of the vulnerabilities, which can be exploited to cause a denial-of-service  condition or the execution of arbitrary code. The issues were confirmed [...]

Code execution holes in RubyA member of Apple’s security team has discovered multiple serious security vulnerabilities in Ruby, the popular open-source scripting language.

According to an advisory on the Ruby project site, Apple’s Drew Yao reported at least six of the vulnerabilities, which can be exploited to cause a denial-of-service  condition or the execution of arbitrary code.

The issues were confirmed in the 1.8 and 1.9 versions of Ruby.  Patch download locations can be found in the alert.

Ruby, initially developed and designed by Yukihiro “Matz” Matsumoto, is the interpreted scripting language for quick and easy object-oriented programming.

UPDATE:  Over on the Matasano Security blog, Thomas Ptacek Eric Monti describes some of these vulnerabilities as “disturbing.”

These vulnerabilities are likely to crop up in just about any average ruby web application. And by “crop up” I mean “crop up exploitable from trivial user-specified parameters”. It’s not hard to begin imagining cases where Ruby/Rails programmers use code similar to the samples above to routinely handle user input. Unlike un-handled ruby exceptions getting raised, these bugs aren’t the fault of the programmer as much as the fault of the interpreter. Part of the unwritten “contract” with your interpreted language is that it will prevent you from letting ridiculous things happen by raising an exception.

Weaponizing these for code-execution may or may not be trivial (we’re looking into this too, — keep you posted). But even a class of DoS attacks this trivial would be horrible enough.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues.

Disclosure

Ryan Naraine

The most important disclosure is of my employment with Kaspersky Lab as a member of the global research and analysis team. Kaspersky Lab is a global company specializing in anti-malware and secure content management technologies. I do not own stocks or other investments in any technology company.

Biography

Ryan Naraine

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues. He is currently security evangelist at Kaspersky Lab, an anti-malware company with operations around the globe. He is taking a leadership role in developing the company's online community initiative around secure content management technologies.

Prior to joining Kaspersky Lab, Ryan was Editor-at-Large/Security at eWEEK, leading the magazine's and Web site's coverage of Internet and computer security issues and managing the popular SecurityWatch blog, covering the daily threats, vulnerabilities and IT security technologies. He also covered IT security, hacker attacks and secure content management topics for Jupiter Media's internetnetnews.com.

Ryan can be reached at naraine SHIFT 2 gmail.com. For daily updates on Ryan's activities, follow him on Twitter.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
8
Comments

Join the conversation!

Just In

response of biblical proportions
Pheck 23rd Jun 2008
Look at the positives to be gained from this, not blame the the people who discovered the flaw.
As someone else has already pointed out this will make Apple look at their own code in Applescript for similar vulnerabilities.
Quoting the bible is unnecessary pontificating.
0 Votes
+ -
Why do you look at the speck that is in your brother's eye, but do not notice the log that is in your own eye?

This would especially be valid after the applescript thing earlier this week or the pwn2own contest at cansecwest.
0 Votes
+ -
A better response might be...
jasonp@... 20th Jun 2008
don't attack the messenger simply because you don't like the message. If there are security issues with Ruby what sense does it make attacking the person who found them? It would make a little more sense holding the developers of Ruby to account. I guess it's true what they say though...there's nothing common about common sense.
0 Votes
+ -
I think he meant that
AllKnowingAllSeeing 20th Jun 2008
they were quick to point out the flaws in somebody else's software, while never addressing or acknowledging the issues found in their own software.

The "magician's misdirection" trick comes to mind.
0 Votes
+ -
nt
0 Votes
+ -
response of biblical proportions
Pheck 23rd Jun 2008
Look at the positives to be gained from this, not blame the the people who discovered the flaw.
As someone else has already pointed out this will make Apple look at their own code in Applescript for similar vulnerabilities.
Quoting the bible is unnecessary pontificating.
Apple ships ruby as part of Mac OS X. Therefore they were looking at their own stuff.
Good. Glad they found it. Them finding it and pointing it out gives us all a chance to breathe easier. Now, isn't it amazing that nobody else out there found it? Apple's not the only company out there developing under Ruby, so...everyone else wake the F***-up! Sheesh.

MM
Good. Glad they found it. Them finding it and pointing it out gives us all a chance to breathe easier. Now, isn't it amazing that nobody else out there found it? Apple's not the only company out there developing under Ruby, so...everyone else wake the heck up! Sheesh.

MM

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix