[OSSA 2014-018] Trust scope can be circumvented by chaining trusts (CVE-2014-3476)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Critical
|
Adam Young | ||
Havana |
Fix Released
|
Critical
|
Adam Young | ||
Icehouse |
Fix Released
|
Critical
|
Adam Young | ||
OpenStack Security Advisory |
Fix Released
|
High
|
Tristan Cacqueray |
Bug Description
I've been experimenting with chaining keystone trusts, and I've encountered what I think is a privilege escalation flaw, where the scope enforced by the trust when initially delegating can be circumvented by creating another trust.
I spoke about this briefly with ayoung on IRC and he seems to be in agreement that this is a bug.
Details:
1. User1 has roles admin and heat_stack_owner
2. User1 delegates to User2 via a trust, only delegating only heat_stack_owner, and enabling impersonation
3. User2 gets a trust-scoped token, impersonating User1
4. User2 creates a new trust, delegating both admin and heat_stack_owner to User3
5. This works, and so when User3 gets a trust scoped token, they can get elevated privileleges, effectively defeating the point of role-limited delegation via the trust.
I've attached a reproducer which demonstrates the problem.
CVE References
Changed in ossa: | |
status: | New → Incomplete |
Changed in keystone: | |
importance: | Undecided → Critical |
Changed in keystone: | |
assignee: | nobody → Adam Young (ayoung) |
Changed in ossa: | |
status: | Incomplete → Confirmed |
importance: | Undecided → High |
Changed in keystone: | |
status: | New → In Progress |
Changed in ossa: | |
assignee: | nobody → Tristan Cacqueray (tristan-cacqueray) |
summary: |
- Trust scope can be circumvented by chaining trusts + Trust scope can be circumvented by chaining trusts (CVE-2014-3476) |
Changed in ossa: | |
status: | Confirmed → In Progress |
information type: | Private Security → Public Security |
summary: |
- Trust scope can be circumvented by chaining trusts (CVE-2014-3476) + [OSSA 2014-018] Trust scope can be circumvented by chaining trusts + (CVE-2014-3476) |
Changed in ossa: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
tags: | added: in-stable-icehouse |
Changed in keystone: | |
milestone: | juno-2 → 2014.2 |
The OSSA task is incomplete pending additional details from security reviewers, keystone-coresec are now subscribed to the bug.
It does sounds like a practical privilege escalation, shouldn't we raise the priority ?