OSSN-0010: Sample Keystone v3 policy exposes privilege escalation vulnerability

Summary

The policy.v3cloudsample.json sample Keystone policy file combined with the underlying mutability of the domain ID for user, group, and project entities exposed a privilege escalation vulnerability. When this sample policy is applied a domain administrator can elevate their privileges to become a cloud administrator.

Affected Services / Software

Keystone, Havana

Discussion

Changes to the Keystone v3 sample policy during the Havana release cycle set an excessively broad domain administrator scope that allowed creation of roles create_grant on other domains (among other actions). There was no check that the domain administrator had authority to the domain they were attempting to grant a role on.

Combining the mutable state of the domain ID for user, group, and project entities with the sample v3 policy resulted in a privilege escalation vulnerability. A domain administrator could execute a series of steps to escalate their access to that of a cloud administrator.

Contacts / References

Author: Jamie Finnigan, HP