Bug 1439586 (CVE-2017-2673)

Summary: CVE-2017-2673 openstack-keystone: Incorrect role assignment with federated Keystone
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aortega, apevec, ayoung, chrisw, cvsbot-xmlrpc, gmollett, jdennis, jjoyce, jschluet, kbasil, lhh, lpeer, markmc, mburns, nkinder, rbryant, rcritten, rduartes, sclewis, security-response-team, slong, srevivo, tdecacqu, tsuter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An authorization-check flaw was discovered in federation configurations of the OpenStack Identity service (keystone). An authenticated federated user could request permissions to a project and unintentionally be granted all related roles including administrative roles.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-28 20:43:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1440644, 1441472, 1441592    
Bug Blocks: 1439588    
Attachments:
Description Flags
master pike patch
none
stable ocata patch
none
cve-2017-2673-openstack-10-newton.patch
none
cve-2017-2673-openstack-11-ocata.patch
none
cve-2017-2673-openstack-12-pike.patch none

Description Adam Mariš 2017-04-06 09:40:34 UTC
An authenticated user may receive all the roles assigned to the user's project regardless of the federation mapping when there are rules in which group-based assignments are not used. For example, by requesting an admin user to get a role in their project, the user may be granted the admin privileges for new scoped tokens. All setups using the Keystone federation with projects auto-provisioning and no group based assignments rules are affected.

Affected versions: 10.0.0, 10.0.1, 11.0.0

Comment 1 Adam Mariš 2017-04-06 09:40:44 UTC
Acknowledgments:

Name: the Openstack project
Upstream: Boris Bobrov (Mail.Ru)

Comment 2 Adam Mariš 2017-04-07 07:30:31 UTC
Created attachment 1269600 [details]
master pike patch

Comment 3 Adam Mariš 2017-04-07 07:31:33 UTC
Created attachment 1269602 [details]
stable ocata patch

Comment 13 Tim Suter 2017-04-20 05:19:29 UTC
new patches are under review upstream for newton, ocata and pike - will post them once they are accepted.

Comment 14 Tim Suter 2017-04-20 06:48:17 UTC
Created attachment 1272868 [details]
cve-2017-2673-openstack-10-newton.patch

added new patch from upstream for openstack 10

Comment 15 Tim Suter 2017-04-20 06:55:11 UTC
Created attachment 1272869 [details]
cve-2017-2673-openstack-11-ocata.patch

Comment 16 Tim Suter 2017-04-20 06:55:55 UTC
Created attachment 1272870 [details]
cve-2017-2673-openstack-12-pike.patch

Comment 18 Andrej Nemec 2017-04-26 06:49:07 UTC
References:

http://seclists.org/oss-sec/2017/q2/125

Comment 20 errata-xmlrpc 2017-06-14 15:42:03 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 9.0 (Mitaka)

Via RHSA-2017:1461 https://access.redhat.com/errata/RHSA-2017:1461

Comment 21 errata-xmlrpc 2017-06-28 15:19:29 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)

Via RHSA-2017:1597 https://access.redhat.com/errata/RHSA-2017:1597