VDB
Sign up
MEDIUM5.4

GHSA-h8rc-w822-q8vq

OpenStack Swift vulnerable to authenticated server-side request forgery

Quick fix

GHSA-h8rc-w822-q8vq — swift: upgrade to the fixed version with the command below.

pip install --upgrade 'swift>=2.37.2'

Details

In OpenStack Swift before 2.37.2, proxy-server does not strip internal update headers (X-Container-Host, X-Container-Device, X-Delete-At-Host, X-Delete-At-Device) from client requests before forwarding them to object-servers. An authenticated user with write access can inject these headers to redirect container update requests to an attacker-controlled server, enabling server-side request forgery. The SSRF requests expose internal cluster metadata including storage policy indexes, partition mappings, device names, and when at rest encryption is enabled, cipher text and initialization vectors for the container-level encryption key. The attacker can also cause "ghost listings" in arbitrary containers via the shard-range redirect mechanism.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/swift
Introduced in: 0Fixed in: 2.37.2
Fixpip install --upgrade 'swift>=2.37.2'

References