[OSSN-0088] Glance leaks resource types across namespaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned | ||
OpenStack Security Advisory |
Won't Fix
|
Undecided
|
Unassigned | ||
OpenStack Security Notes |
Fix Released
|
Critical
|
Abhishek Kekane |
Bug Description
As a user of a project, I can see resource types associated to private namespaces I don't have access to:
╭─ubuntu@
╰─➤ $ cat alicerc
export OS_CACERT=
export OS_PROJECT_
export OS_USERNAME=alice
export OS_PASSWORD=
export OS_REGION_
export OS_IDENTITY_
export OS_AUTH_
export OS_AUTH_URL=http://
export OS_USER_
export OS_PROJECT_
export OS_VOLUME_
╭─ubuntu@
╰─➤ $ source alicerc
╭─ubuntu@
╰─➤ $ glance md-namespace-list
+------
| namespace |
+------
| OS::Software::DBMS |
| CIM::ResourceAl
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| CIM::ProcessorA
| OS::Compute:
| OS::Cinder:
| OS::Software:
| OS::Compute:
| OS::Compute::XenAPI |
| OS::Compute::Quota |
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Compute:
| OS::Glance:
| CIM::VirtualSys
| CIM::StorageAll
| OS::Software:
| OS::Compute::VMware |
+------
╭─ubuntu@
╰─➤ $ glance md-namespace-create alice-namespace
+------
| Property | Value |
+------
| created_at | 2021-02-
| namespace | alice-namespace |
| owner | 67f1495e5dc145a
| protected | False |
| schema | /v2/schemas/
| updated_at | 2021-02-
| visibility | private |
+------
╭─ubuntu@
╰─➤ $ glance md-resource-
+------
| Property | Value |
+------
| created_at | 2021-02-
| name | alice-resource-type |
| updated_at | 2021-02-
+------
Now as a separate user
╭─ubuntu@
╰─➤ $ source openrc demo demo
is_service_
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
╭─ubuntu@
╰─➤ $ glance md-resource-
+------
| name |
+------
| OS::Glance::Image |
| OS::Cinder::Volume |
| OS::Nova::Server |
| OS::Nova::Aggregate |
| OS::Nova::Flavor |
| OS::Trove::Instance |
| bar |
| test |
| alice-resource-type |
+------
description: | updated |
summary: |
- Glance leaks resource types across namespaces + [OSSN-0088] Glance leaks resource types across namespaces |
Changed in ossa: | |
status: | Incomplete → Won't Fix |
Changed in ossn: | |
importance: | Undecided → Critical |
status: | New → Fix Released |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
tags: | added: security |
I'm opening this as a security vulnerability based on conversations with jokke