Bug 199539

Summary: CVE-2006-3694 Insecure operations in the certain safe-level restrictions
Product: Red Hat Enterprise Linux 4 Reporter: Akira TAGOH <tagoh>
Component: rubyAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: source=debian,reported=20060712,impact=moderate,public=20060711
Fixed In Version: RHSA-2006-0604 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-27 20:33:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 199538    
Bug Blocks:    

Description Akira TAGOH 2006-07-20 08:42:09 UTC
+++ This bug was initially created as a clone of Bug #199538 +++

Description of problem:
Vulnerabilities has been reported in Ruby, which can be proceeded insecure
operations that originally wasn't expected in the certain safe-level restrictions.

Version-Release number of selected component (if applicable):
all versions of Ruby without any exceptions, such as 1.6.x and 1.8.x.

How reproducible:
always

Steps to Reproduce:
1.ruby dir_jvn13947696.rb
2.ruby dir_jvn13947696_2.rb
3.
  
Actual results:
no exceptions.

Expected results:
$ ruby dir_jvn13947696.rb
dir_jvn13947696.rb:5:in `read': Insecure: operation on untainted Dir (SecurityError)
        from dir_jvn13947696.rb:3:in `join'
        from dir_jvn13947696.rb:3
$ ruby dir_jvn13947696_2.rb
dir_jvn13947696_2.rb:5:in `close': Insecure: can't close (SecurityError)
        from dir_jvn13947696_2.rb:3:in `join'
        from dir_jvn13947696_2.rb:3


Additional info:
This affects to RHEL2.1, 3 and 4 as well.

Comment 1 Akira TAGOH 2006-07-20 08:43:26 UTC
See Bug#199538 for the testcases.

Comment 3 Akira TAGOH 2006-07-21 12:47:36 UTC
Fixed packages has been built.

Comment 7 Red Hat Bugzilla 2006-07-27 20:33:26 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0604.html