Bug 199538 - Insecure operations in the certain safe-level restrictions
Summary: Insecure operations in the certain safe-level restrictions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks: 199539
TreeView+ depends on / blocked
 
Reported: 2006-07-20 08:40 UTC by Akira TAGOH
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-24 03:17:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
testcase1 (83 bytes, text/plain)
2006-07-20 08:44 UTC, Akira TAGOH
no flags Details
testcase2 (84 bytes, text/plain)
2006-07-20 08:44 UTC, Akira TAGOH
no flags Details
testcase3 (99 bytes, text/plain)
2006-07-20 08:47 UTC, Akira TAGOH
no flags Details

Description Akira TAGOH 2006-07-20 08:40:00 UTC
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 FC4 and FC5 as well.

Comment 1 Akira TAGOH 2006-07-20 08:44:03 UTC
Created attachment 132732 [details]
testcase1

Comment 2 Akira TAGOH 2006-07-20 08:44:49 UTC
Created attachment 132733 [details]
testcase2

Comment 3 Akira TAGOH 2006-07-20 08:47:27 UTC
Created attachment 132734 [details]
testcase3

Forgot to mention one more.

Actual Result:
no exception.

Expected Result:
$ ruby regexp_jvn13947696.rb
regexp_jvn13947696.rb:5:in `initialize': Insecure: can't modify regexp
(SecurityError)
	from regexp_jvn13947696.rb:3:in `join'
	from regexp_jvn13947696.rb:3

Comment 4 Akira TAGOH 2006-07-21 11:56:37 UTC
Fixed in:
devel - 1.8.4-11.fc6
FC-5  - 1.8.4-8.fc5
FC-4  - 1.8.4-3.fc4

Comment 5 Fedora Update System 2006-07-22 19:06:54 UTC
ruby-1.8.4-8.fc5 has been pushed for fc5, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.