Bug 1489360 (CVE-2017-12155) - CVE-2017-12155 openstack-tripleo-heat-templates: Ceph client keyring is world-readable when deployed by director
Summary: CVE-2017-12155 openstack-tripleo-heat-templates: Ceph client keyring is world...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-12155
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1491467 1491468 1491469 1491470 1491471 1491472 1491473 1493311 1518029 1518030
Blocks: 1489366
TreeView+ depends on / blocked
 
Reported: 2017-09-07 09:25 UTC by Adam Mariš
Modified: 2021-02-17 01:35 UTC (History)
33 users (show)

Fixed In Version: puppet-tripleo-7.4.7, puppet-tripleo-6.5.7
Doc Type: If docs needed, set a value
Doc Text:
A resource-permission flaw was found in the openstack-tripleo-heat-templates package where ceph.client.openstack.keyring is created as world-readable. A local attacker with access to the key could read or modify data on Ceph cluster pools for OpenStack as though the attacker were the OpenStack service, thus potentially reading or modifying data in an OpenStack Block Storage volume. To exploit this flaw, the attacker must have local access to an overcloud node. However by default, access to overcloud nodes is restricted and accessible only from the management undercloud server on an internal network. Follow good security principles in your networking environment to ensure that network access is properly controlled.
Clone Of:
Environment:
Last Closed: 2019-06-08 03:24:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0602 0 None None None 2018-03-28 17:14:39 UTC
Red Hat Product Errata RHSA-2018:1593 0 None None None 2018-05-17 15:40:44 UTC
Red Hat Product Errata RHSA-2018:1627 0 None None None 2018-05-18 17:03:05 UTC

Description Adam Mariš 2017-09-07 09:25:29 UTC
When deploying overcloud by Director, it was found that ceph client keyring is created as world-readable potentially allowing local attackers to read or modify data of guests.

Product bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1462657

Comment 6 Summer Long 2017-09-14 06:24:33 UTC
Acknowledgments:

Name: Katuya Kawakami (NEC)

Comment 8 Summer Long 2017-09-19 06:11:23 UTC
Mitigation:

To mitigate the flaw, use an overcloud post-deploy script[1] to do the following on all overcloud nodes:

key=/etc/ceph/ceph.client.openstack.keyring
chown root:root $key
chmod 600 $key
setfacl -m u:glance:r $key 
setfacl -m u:cinder:r $key
setfacl -m u:nova:r $key
setfacl -m u: gnocchi:r $key

If not using Red Hat OpenStack Platform director, then run the commands above manually on each overcloud node, 
Warning: Only running 'chmod 600 $key' alone (without an ACL) will prevent OpenStack from reading the key.

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html-single/advanced_overcloud_customization/#sect-Customizing_Overcloud_PostConfiguration_All

Comment 9 Summer Long 2017-09-19 22:11:54 UTC
Created openstack-tripleo-heat-templates tracking bugs for this issue:

Affects: openstack-rdo [bug 1493311]

Comment 14 Eric Christensen 2018-02-19 16:44:27 UTC
In reply to comment 13:
I reformatted the security part of the erratum to meet the new criteria.  Thanks for the heads up.

Comment 21 Summer Long 2018-02-21 22:07:11 UTC
Thanks Jason. Will do, and will pass on to the team. Thanks!

Comment 25 errata-xmlrpc 2018-03-28 17:14:27 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 12.0 (Pike)

Via RHSA-2018:0602 https://access.redhat.com/errata/RHSA-2018:0602

Comment 26 errata-xmlrpc 2018-05-17 15:40:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)

Via RHSA-2018:1593 https://access.redhat.com/errata/RHSA-2018:1593

Comment 27 errata-xmlrpc 2018-05-18 17:02:51 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 11.0 (Ocata)

Via RHSA-2018:1627 https://access.redhat.com/errata/RHSA-2018:1627


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