PYSEC-2017-84: Critical severity Openstack Swauth vulnerability
An issue was discovered in middleware.py in OpenStack Swauth through 1.2.0 when used with OpenStack Swift through 2.15.1. The Swift object store and proxy server are saving (unhashed) tokens retrieved from the Swauth middleware authentication mechanism to a log file as part of a GET URI. This allows attackers to bypass authentication by inserting a token into an X-Auth-Token header of a new request. NOTE: github.com/openstack/swauth URLs do not mean that Swauth is maintained by an official OpenStack project team.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Swauth through 1.2.0 together with OpenStack Swift through 2.15.1 are affected. The issue involves the Swift object store and proxy server logging tokens obtained through Swauth middleware authentication.
What does an attacker need to exploit the vulnerability?
An attacker needs access to an unhashed authentication token written to the log as part of a GET URI. They can then place that token in an X-Auth-Token header on a new request to bypass authentication.
How can I determine whether tokens may already have been exposed?
Review Swift object store and proxy server logs for GET URIs containing Swauth authentication tokens. Because the tokens are logged unhashed, any such log entries should be treated as potential credential exposure.