Bug 130065 - CAN-2004-0755 ruby insecure file permissions
Summary: CAN-2004-0755 ruby insecure file permissions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: ruby
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-16 20:19 UTC by Josh Bressers
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-30 14:22:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test script (312 bytes, text/plain)
2004-08-18 22:43 UTC, Josh Bressers
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2004:441 0 normal SHIPPED_LIVE Low: ruby security update 2004-09-30 04:00:00 UTC

Description Josh Bressers 2004-08-16 20:19:36 UTC
From the Debian DSA

Andres Salomon no ticed a problem in the CGI session management of
Ruby, an object-oriented scripting language.  CGI::Session's FileStore
(and presumably PStore, but not in Debian woody) implementations store
session information insecurely.  They simply create files, ignoring
permission issues.  This can lead an attacker who has also shell
access to the webserver to take over a session.

This issue was reported to the Debian bug system
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=260779

This issue should also affect RHEL2.1

Fedora Core is being handled by bug 130063

Comment 1 Akira TAGOH 2004-08-18 10:41:59 UTC
this problem should be fixed in 1.6.8-9.EL3.1 and 1.6.4-2.AS21.0.
please confirm it.

Comment 2 Josh Bressers 2004-08-18 22:12:51 UTC
This issue is CAN-2004-0755

Comment 3 Josh Bressers 2004-08-18 22:42:35 UTC
I can verify your new rpms fix the problem.  I'll attach my little
test cgi script.

Comment 4 Josh Bressers 2004-08-18 22:43:45 UTC
Created attachment 102862 [details]
Test script

If this bug is fixed, the permissions of the ls the script outputs should be

-rw-------

Comment 5 Josh Bressers 2004-09-30 14:22:37 UTC
An errata 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-2004-441.html



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