Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 162978

Summary: CAN-2005-2104 sysreport insecure temporary directory usage
Product: Red Hat Enterprise Linux 4 Reporter: Josh Bressers <bressers>
Component: sysreportAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,embargo=20050809,source=secalert,reported=20050711
Fixed In Version: RHSA-2005-598 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-09 16:07:28 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:

Description Josh Bressers 2005-07-11 22:48:40 UTC
sysreport creates a temporary directory in an insecure manner.

umask 0077
ROOT=/tmp/sysreport.$$

ROOT should be something like
ROOT=`mktemp -d /tmp/sysreport.XXXXXXXX`

It is possible for a local attacker to cause a race condition and trick
sysreport into writing its output to a directory the attacker can read.

Comment 1 Josh Bressers 2005-07-11 22:49:41 UTC
This issue should also affect RHEL2.1 and RHEL3

Comment 2 Josh Bressers 2005-07-11 22:52:20 UTC
This issue was discovered by Bill Stearns

Comment 3 Than Ngo 2005-07-12 10:31:59 UTC
it's now fixed in sysreport-1.3.15-3 (RHEL4), sysreport-1.3.7.2-7 (RHEL3) and
sysreport-1.3.7.0-5 (RHEL2.1).

Comment 4 Josh Bressers 2005-08-09 15:32:46 UTC
Lifting embargo

Comment 5 Red Hat Bugzilla 2005-08-09 16:07:28 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-2005-598.html


Comment 6 Fedora Update System 2005-11-10 17:18:35 UTC
From User-Agent: XML-RPC

sysreport-1.4.1-5 has been pushed for FC4, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.