Bug 288221 - (CVE-2007-5495) CVE-2007-5495 setroubleshoot insecure logging
CVE-2007-5495 setroubleshoot insecure logging
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 421791
  Show dependency treegraph
Reported: 2007-09-12 14:48 EDT by Mark J. Cox
Modified: 2016-06-17 17:06 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-29 03:52:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mark J. Cox 2007-09-12 14:48:53 EDT
reported via secalert@redhat.com

        By default, the sealert program writes diagnostic messages to the file
/tmp/sealert.log. It does not check to ensure that this file does not
already exist, or that it is not a symbolic link. An unprivileged local
attacker can exploit this flaw to cause arbitrary files writable by
other users to be overwritten when those users run sealert. The sealert
program is run automatically, without user action, as part of the
default RHEL 5 GNOME desktop session. It does not appear to be possible
for the attacker to cause arbitrary data to be written to sealert.log,
but the previous contents of the file are erased.'
Comment 1 John Dennis 2007-09-13 12:47:20 EDT
This is already addressed in the current upstream, the file is no longer created.
Comment 2 Steve Grubb 2007-09-13 15:02:43 EDT
What about RHEL5.1's version?
Comment 3 John Dennis 2007-09-14 18:35:46 EDT
The RHEL 5.1 version is the same as 5.0. It would be trival to patch RHEL to
turn off creation of this log file.

The only way for security sensitive information to be written to the file would
be if the verbose debug logging was turned on, but that requires root privledge
to modify the configuration. Tracebacks due to program exceptions which might be
written to the file do not contain user data.
Comment 7 Mark J. Cox 2008-05-21 10:17:39 EDT
removing embargo
Comment 8 Tomas Hoger 2008-05-25 14:33:57 EDT
John, can you please clarify which upstream setroubleshoot version first fixed
this flaw?  I see /tmp/sealert.log defined in config.py in 1.8.11 and is no
longer set in 1.9.4, but I fail to find versions in between to check which
version was the first to include this change.
Comment 9 John Dennis 2008-05-27 11:20:49 EDT
No, I don't recall the exact version this first appeared in. If it's important I
could research it.
Comment 10 Tomas Hoger 2008-05-27 12:03:08 EDT
Probably not if you agree with the assessment that fix occurred somewhere in
between 1.8.11 and 1.9.4, so that I managed to identify the right change that
was used to resolve this issue.

Is there any place where all previous upstream versions can be found?
Comment 11 Red Hat Product Security 2008-05-29 03:52:44 EDT
This issue was addressed in:

Red Hat Enterprise Linux:

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