REDHAT-BUG-1261606: Medium severity ceph RGW vulnerability
Upstream reports:
PCI scans have determined that the RGW is returning whatever string it thought was the name of the bucket requested as raw text in the Bucket response header, which we are using to be able to track request/response cycles by bucket. The result is that things like this are possible (note the extra Content-type header):
<snip> $ curl -i "objects.dreamhost.com/nothing-to-see-here%22%0D%0AContent-type%3A%20%22image-jpg";echo HTTP/1.1 400 Bad Request Bucket: "nothing-to-see-here" Content-type: "image-jpg" Content-Length: 83 Accept-Ranges: bytes Content-type: application/xml Date: Mon, 27 Jul 2015 22:57:11 GMT
<Error><Code>InvalidBucketName</Code></Error> </snip>
This could be considerably worse. It is in fact trivial to make the RGW return invalid HTTP responses this way as well (the resulting response is from HAProxy rejecting the invalid response from the RGW, as it should):
</snip> $ curl -i "objects.dreamhost.com/nothing-to-see-here%22%0D%0AContent-Length%3A%20%2282";echo HTTP/1.0 502 Bad Gateway Cache-Control: no-cache Connection: close Content-Type: text/html
<html><body><h1>502 Bad Gateway</h1> The server returned an invalid or incomplete response. </body></html> </snip>
The RGW needs to sanitize/clean-up the bucket name before including it in the bucket header, by encoding the data in a standard encoding so that it is impossible to do things like inserting new headers, data, etc.. that looks like meaningful parts of a real HTTP response.
External reference: http://tracker.ceph.com/issues/12537
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-1261606?
The severity of REDHAT-BUG-1261606 is considered moderate due to its potential impact on security and data integrity.
How do I fix REDHAT-BUG-1261606?
To fix REDHAT-BUG-1261606, you should update your Ceph RGW to the latest version where this vulnerability has been addressed.
What software is affected by REDHAT-BUG-1261606?
The affected software for REDHAT-BUG-1261606 is Ceph RGW.
What is the impact of REDHAT-BUG-1261606?
The impact of REDHAT-BUG-1261606 includes the possibility of revealing internal bucket names in HTTP response headers, which can lead to information leakage.
Is there a workaround for REDHAT-BUG-1261606?
Currently, there are no documented workarounds for REDHAT-BUG-1261606, so upgrading to a patched version is recommended.