swift/swift
Clay Gerrard 0694e1911d Disallow unsafe tempurl operations to point to unauthorized data
Do not allow PUT tempurls to create pointers to other data. Specifically
disallow the creation of DLO object manifests by returning an error if a
non-safe tempurl request includes an X-Object-Manifest header regardless of
the value of the header.

This prevents discoverability attacks which can use any PUT tempurl to probe
for private data by creating a DLO object manifest and then using the PUT
tempurl to head the object which would 404 if the prefix does not match any
object data or form a valid DLO HEAD response if it does.

This also prevents a tricky and potentially unexpected consequence of PUT
tempurls which would make it unsafe to allow a user to download objects
created by tempurl (even if they just created them) because the result of
reading the object created via tempurl may not be the data which was uploaded.

[CVE-2015-5223]

Co-Authored-By: Kota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>

Closes-Bug: 1453948

Change-Id: I91161dfb0f089c3990aca1b4255b520299ef73c8
2015-08-26 07:54:02 -07:00
..
account Fix metadata overall limits bug 2014-10-02 22:38:13 +00:00
cli Provides proper error handling on builder unpickle 2014-09-26 09:44:35 +05:30
common Disallow unsafe tempurl operations to point to unauthorized data 2015-08-26 07:54:02 -07:00
container Fix reclaim on deleted containers 2014-12-04 15:06:53 -08:00
locale Imported Translations from Transifex 2014-09-28 06:08:55 +00:00
obj Ensure sys.exit called in fork_child after exception 2014-10-02 17:46:06 -04:00
proxy Prevent unauthorized delete in versioned container 2015-04-13 23:34:46 -07:00
__init__.py Make pbr a build-time only dependency 2013-10-29 12:29:49 -07:00