Red Hat Bugzilla – Bug 288221
CVE-2007-5495 setroubleshoot insecure logging
Last modified: 2016-06-17 17:06:48 EDT
reported via firstname.lastname@example.org
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.'
This is already addressed in the current upstream, the file is no longer created.
What about RHEL5.1's version?
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.
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.
No, I don't recall the exact version this first appeared in. If it's important I
could research it.
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?
This issue was addressed in:
Red Hat Enterprise Linux: