Bug 130065

Summary: CAN-2004-0755 ruby insecure file permissions
Product: Red Hat Enterprise Linux 3 Reporter: Josh Bressers <bressers>
Component: rubyAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: mjc
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-30 14:22:37 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:
Attachments:
Description Flags
Test script none

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