Ruby FileStore and PStore insecure permission
| ruby-filestore-pstore-insecure-permission (16996) |
Description:
Ruby could allow local attackers to gain sensitive information. The FileStore and PStore scripts create files with insecure permissions. A local attacker, with shell access, could use this vulnerability to obtain session information.
Consequences:
Obtain Information
Remedy:
For Debian GNU/Linux 3.0 (woody):
Upgrade to the latest ruby package, as listed below. Refer to DSA-537-1 for more information. See References.
Debian GNU/Linux 3.0 (woody): 1.6.7-3woody3 or later
For Gentoo Linux:
Upgrade to the latest version of ruby (1.6.8-r11, 1.8.0-r7, >= 1.8.2_pre2 or later), as listed in GLSA 200409-08. See References.
For Red Hat Linux:
Upgrade to the latest ruby package, as listed below. Refer to RHSA-2004:441-18 for more information. See References.
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor: 1.6.4-2.AS21.0 or later
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 1.6.8-9.EL3.2.x86_64 or later
For Mandrake Linux:
Upgrade to the latest ruby package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:128 for more information. See References.
Mandrake Linux 10.1: 1.8.1-4.2.101mdk or later
Mandrake Linux 9.2: 1.8.0-4.2.92mdk or later
Mandrake Linux Corporate Server 2.1: 1.6.7-5.2.C21mdk or later
Mandrake Linux 10.0: 1.8.1-1.2.100mdk or later
For Turbolinux:
Upgrade to the latest ruby package, as listed below. Refer to Turbolinux Security Advisory TLSA-2005-15 for more information. See References.
Turbolinux 10 Server: 1.8.1-4 or later
Turbolinux Home: 1.6.8-2 or later
Turbolinux 10 Desktop: 1.6.8-2 or later
Turbolinux 8 Server: 1.6.4-4 or later
Turbolinux 8 Workstation: 1.6.4-4 or later
Turbolinux 7 Server: 1.6.4-4 or later
Turbolinux 7 Workstation: 1.6.4-4 or later
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- BID-10946: Yukihiro Matsumoto Ruby CGI Session Management Insecure File Permissions Vulnerability
- CVE-2004-0755: The FileStore capability in CGI::Session for Ruby before 1.8.1, and possibly PStore, creates files with insecure permissions, which can allow local users to steal session information and hijack sessions.
- DSA-537: ruby -- insecure file permissions
- GLSA-200409-08: Ruby: CGI::Session creates files insecurely
- MDKSA-2004:128: Updated ruby packages fix remote DoS vulnerability
- RHSA-2004-441: ruby security update
- SA12290: Ruby CGI Session Management Insecure File Creation Vulnerability
Platforms Affected:
- Debian Debian Linux 3.0
- Gentoo Linux
- MandrakeSoft Mandrake Linux 10.0 AMD64
- MandrakeSoft Mandrake Linux 10.0
- MandrakeSoft Mandrake Linux 10.1 X86_64
- MandrakeSoft Mandrake Linux 10.1
- MandrakeSoft Mandrake Linux 9.2 AMD64
- MandrakeSoft Mandrake Linux 9.2
- MandrakeSoft Mandrake Linux Corporate Server 2.1
- MandrakeSoft Mandrake Linux Corporate Server 2.1 X86_64
- RedHat Enterprise Linux 2.1 AW
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 WS
- Turbolinux Turbolinux 10 Desktop
- Turbolinux Turbolinux 10 F...
- Turbolinux Turbolinux 10 Server
- Turbolinux Turbolinux 7 Server
- Turbolinux Turbolinux 7 Workstation
- Turbolinux Turbolinux 8 Server
- Turbolinux Turbolinux 8 Workstation
- Turbolinux Turbolinux Home
- Yukihiro Matsumoto Ruby
Reported:
Aug 16, 2004
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
