Ruby "Exception # to_s" method bypasses the Security Restriction Vulnerability

Source: Internet
Author: User

Release date:
Updated on:

Affected Systems:
Yukihiro Matsumoto Ruby 1.8.x
Unaffected system:
Yukihiro Matsumoto Ruby 1.8.7-
Description:
--------------------------------------------------------------------------------
Bugtraq id: 46458

Ruby is a powerful object-oriented scripting language.

The Ruby "Exception # to_s" method has a Security Restriction Bypass Vulnerability. Remote attackers can exploit this vulnerability to bypass certain security restrictions and escalate their permissions.

This vulnerability is caused by exceptions during "Exception # to_s" processing and can be exploited to bypass security level protection, such as modifying protected strings. In Ruby's $ SAFE, Security Level 4 is used to run Untrusted code (such as plug-ins ). In higher security levels, some types of operations are prohibited to prevent malicious code from attacking normal data. Exception # to_s can be used to fool $ SAFE check and cause suspicious code to modify arbitrary strings. The "# to_s" method can fool the security level mechanism and modify normal data in a destructive manner.

<* Link: http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/
*>

Suggestion:
--------------------------------------------------------------------------------
Vendor patch:

Yukihiro Matsumoto
------------------
The vendor has released a patch to fix this security problem. Please download it from the vendor's homepage:

Http://www.ruby-lang.org/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.