Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1232826 - (CVE-2015-3243) CVE-2015-3243 rsyslog: some log files are created world-readable
CVE-2015-3243 rsyslog: some log files are created world-readable
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20150618,reported=2...
: Security
Depends On: 1228192
Blocks: 1232828
  Show dependency treegraph
 
Reported: 2015-06-17 11:04 EDT by Vasyl Kaigorodov
Modified: 2015-07-17 07:13 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-13 22:36:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vasyl Kaigorodov 2015-06-17 11:04:01 EDT
It was reported that rsyslogd creates log files world-readable, which might lead to an information disclosure.
Comment 1 Tomas Heinrich 2015-06-26 11:36:38 EDT
I'm wondering how to go about fixing this one...

The base line is to change the default umask for newly created files. But that doesn't take care of already existing log files - logrotate recreates the file before rsyslog gets a chance to do it. I'm unconvinced we should hard reset files to the right umask in the updated package.

The current way of setting couple of umasks during packages install and relying on logrotate to always preserve them on file rotation is extremely fragile. If a file goes missing once for whatever reason, the umask is reset to the service default.
Comment 2 Robert Scheck 2015-06-27 16:22:11 EDT
Can't we simply add "create 0600 root root" in /etc/logrotate.d/syslog, add
the /var/log/cron to the %post of rsyslog and finally add a chmod 600 for the
/var/log/{messages,secure,maillog,spooler,cron}* files in %post as well?
Comment 3 Kurt Seifried 2015-07-13 22:33:54 EDT
Mitigation:

Please add:

create 0600 root root

to the /etc/logrotate.d/syslog file, this will ensure the file is created with permissions when logrotate runs. It is also recommended that users manually set the permissions on existing or newly installed log files in order to prevent access by untrusted users.
Comment 4 Kurt Seifried 2015-07-13 22:36:21 EDT
Statement:

This issue affects the versions of rsyslog as shipped with Red Hat Enterprise Linux 7. Red Hat Product Security has rated this issue as having Low security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/. Additionally a workaround is available (https://bugzilla.redhat.com/show_bug.cgi?id=1232826#c3).

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