Bug 1263511 (CVE-2015-5251)

Summary: CVE-2015-5251 openstack-glance allows illegal modification of image status
Product: [Other] Security Response Reporter: Summer Long <slong>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abaron, aortega, apevec, ayoung, chrisw, dallan, eglynn, fpercoco, gkotton, gmollett, jschluet, lhh, lpeer, markmc, rbryant, sclewis, security-response-team, tdecacqu, yeylon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A flaw was discovered in the OpenStack Image service (glance) where a tenant could manipulate the status of their images by submitting an HTTP PUT request together with an 'x-image-meta-status' header. A malicious tenant could exploit this flaw to reactivate disabled images, bypass storage quotas, and in some cases replace image contents (where they have owner access). Setups using the Image service's v1 API could allow the illegal modification of image status. Additionally, setups which also use the v2 API could allow a subsequent re-upload of image contents.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-15 21:41:13 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: 1264707, 1264708, 1264709, 1264710, 1270680, 1270681    
Bug Blocks: 1263515    
Attachments:
Description Flags
Upstream patch-Kilo
none
Upstream patch-Juno
none
Upstream patch-Liberty none

Description Summer Long 2015-09-16 03:23:51 UTC
Vulnerability in Glance. By submitting a HTTP PUT request with a 'x-image-meta-status' header, a tenant can manipulate the status of their images. A malicious tenant may exploit this flaw to reactivate disabled images, bypass storage quotas and in some cases replace image contents. Setups using the Glance v1 API allow the illegal modification of image status. Setups which also use the v2 API may allow a subsequent re-upload of image contents.

Acknowledgements:

Red Hat would like to thank the OpenStack project for reporting this issue. Upstream acknowledges Hemanth Makkapati of Rackspace as the original reporter.

Comment 1 Summer Long 2015-09-18 01:14:03 UTC
Created attachment 1074617 [details]
Upstream patch-Kilo

Comment 2 Summer Long 2015-09-18 01:14:29 UTC
Created attachment 1074618 [details]
Upstream patch-Juno

Comment 3 Summer Long 2015-09-18 01:14:59 UTC
Created attachment 1074619 [details]
Upstream patch-Liberty

Comment 5 Summer Long 2015-10-12 06:44:38 UTC
Created openstack-glance tracking bugs for this issue:

Affects: fedora-all [bug 1270680]
Affects: openstack-rdo [bug 1270681]

Comment 6 errata-xmlrpc 2015-10-15 12:32:42 UTC
This issue has been addressed in the following products:

  OpenStack 5 for RHEL 6
  OpenStack 5 for RHEL 7
  OpenStack 6 for RHEL 7
  OpenStack 7 For RHEL 7

Via RHSA-2015:1897 https://rhn.redhat.com/errata/RHSA-2015-1897.html