[OSSA 2013-027] 'image_download' role in v2 causes traceback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Critical
|
Zhi Yan Liu | ||
Folsom |
Fix Committed
|
Undecided
|
Unassigned | ||
Grizzly |
Fix Released
|
Critical
|
Stuart McLaren | ||
OpenStack Security Advisory |
Fix Released
|
Medium
|
Thierry Carrez |
Bug Description
If you enable the 'image_download' policy as follows:
{
"context_
"download_
"default": "",
"manage_
}
And attempt to download using the v2 api you get 200 rather than 403 (but, correctly, no data)
and a stack trace on the server:
6234 DEBUG glance.api.policy [acaf8321-
6234 DEBUG glance.image_cache [acaf8321-
6234 DEBUG glance.api.policy [acaf8321-
6234 DEBUG glance.
6234 ERROR glance.image_cache [acaf8321-
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache Traceback (most recent call last):
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache for chunk in image_iter:
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache for chunk in self.image.
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache self.policy.
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache exception.
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache return policy.check(rule, target, credentials, *args, **kwargs)
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache File "/opt/stack/
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache raise exc(*args, **kwargs)
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache Forbidden: You are not authorized to complete this action.
2013-10-04 17:34:47.678 6234 TRACE glance.image_cache
6234 DEBUG eventlet.
File "/usr/local/
for data in result:
File "/opt/stack/
for chunk in image_iter:
File "/opt/stack/
for chunk in self.image.
File "/opt/stack/
self.
File "/opt/stack/
exception.
File "/opt/stack/
return policy.check(rule, target, credentials, *args, **kwargs)
File "/opt/stack/
raise exc(*args, **kwargs)
Forbidden: You are not authorized to complete this action.
6234 DEBUG eventlet.
CVE References
tags: | added: havana-rc-potential |
Changed in glance: | |
assignee: | nobody → Zhi Yan Liu (lzy-dev) |
Changed in glance: | |
importance: | Undecided → Critical |
milestone: | none → icehouse-1 |
Changed in glance: | |
milestone: | icehouse-1 → havana-rc2 |
tags: | removed: havana-rc-potential |
tags: | added: grizzly-backport-potential |
Changed in glance: | |
milestone: | havana-rc2 → 2013.2 |
tags: | removed: grizzly-backport-potential |
I'm unlikely to be able to look at this in the short term, so if anyone else would like to pick it up feel free!