Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1431464 - openstack-gnocchi: /var/log/gnocchi is world readable
openstack-gnocchi: /var/log/gnocchi is world readable
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-gnocchi (Show other bugs)
9.0 (Mitaka)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 11.0 (Ocata)
Assigned To: Pradeep Kilambi
Sasha Smolyak
: Security, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-12 19:31 EDT by Summer Long
Modified: 2017-05-17 16:06 EDT (History)
7 users (show)

See Also:
Fixed In Version: openstack-gnocchi-3.1.2-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1431462
: 1431465 (view as bug list)
Environment:
Last Closed: 2017-05-17 16:06:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
RDO 5257 None None None 2017-03-13 09:02 EDT
RDO 5799 None None None 2017-03-13 09:03 EDT
Red Hat Product Errata RHEA-2017:1245 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 Bug Fix and Enhancement Advisory 2017-05-17 19:01:50 EDT

  None (edit)
Description Summer Long 2017-03-12 19:31:58 EDT
Description of problem:
The directory /var/log/gnocchi is world readable and contains log files that are readable, which can result in the exposure of sensitive information. The 'other readable/execute' bits need to be removed from the /var/log/gnocchi directory.

Because no sensitive data was found in the files, this is being raised as a hardening bug, and not a flaw.

Version-Release number of selected component (if applicable):
openstack-gnocchi-2.1.3-3.el7ost

How reproducible:
List /var/log directory for openstack-gnocchi:
$  ls -la gnocchi
total 72
drwxr-xr-x.  2 gnocchi root       67 Mar  7 20:25 .
drwxr-xr-x. 29 root    root     4096 Mar 12 19:20 ..
-rw-r--r--.  1 gnocchi gnocchi   322 Mar  7 20:25 gnocchi-upgrade.log
-rw-r--r--.  1 gnocchi gnocchi 26511 Mar 12 19:23 metricd.log
-rw-r--r--.  1 gnocchi gnocchi 29540 Mar 12 19:21 statsd.log

Actual results:
Directory and files are world readable.

Expected results:
Directory and files should not be world readable.
Comment 1 Pradeep Kilambi 2017-03-13 09:02:46 EDT
this has been fixed in master rdo already. I backported to ocata.
Comment 4 Sasha Smolyak 2017-04-25 07:38:19 EDT
[stack@undercloud-0 log]$ ls -la gnocchi
ls: cannot open directory gnocchi: Permission denied
[stack@undercloud-0 log]$ ls -lart gnocchi
ls: cannot open directory gnocchi: Permission denied
[stack@undercloud-0 log]$ sudo ls -lart gnocchi
total 24
-rw-r--r--.  1 gnocchi gnocchi 1090 Apr 25 06:28 gnocchi-upgrade.log
-rw-r--r--.  1 gnocchi gnocchi  611 Apr 25 06:28 statsd.log
drwxr-x---.  2 gnocchi root      85 Apr 25 06:31 .
-rw-r--r--.  1 gnocchi gnocchi 2683 Apr 25 06:31 app.log
drwxr-xr-x. 34 root    root    4096 Apr 25 07:09 ..
-rw-r--r--.  1 gnocchi gnocchi 4415 Apr 25 07:34 metricd.log
Comment 5 errata-xmlrpc 2017-05-17 16:06:46 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1245

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