In OpenStack Swift through 2.38.0, the S3API middleware does not sanitize Swift-native control headers (X-Copy-From, X-Copy-From-Account) from S3 API requests when s3_acl=true. An
attacker can inject these headers into a signed PUT request targeting their own bucket, causing Swift to perform a server-side copy from another tenant's private object. The source object authorization is bypassed because the S3API middleware has already authorized the request against the destination.
The attacker can read any object whose project_id, container name, and object name are known, regardless of the source object's ACLs or ownership. This requires the non-default s3_acl=true configuration.
Attack Parameters
Impact Assessment
CVSS Vector v4.0
Weakness Type (CWE)
Vulnerable Products 4
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Openstack Swift
cpe:2.3:a:openstack:swift:*:*:*:*:*:*:*:*
|
2.18.0
|
2.35.4
|
|
Openstack Swift
cpe:2.3:a:openstack:swift:*:*:*:*:*:*:*:*
|
2.36.0
|
2.36.3
|
|
Openstack Swift
cpe:2.3:a:openstack:swift:*:*:*:*:*:*:*:*
|
2.37.0
|
2.37.3
|
|
Openstack Swift
cpe:2.3:a:openstack:swift:*:*:*:*:*:*:*:*
|
2.38.0
|
<= 2.38.0
|