REDHAT-BUG-2500672: High severity pypi/tornado vulnerability
Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, SimpleAsyncHTTPClient shallow-copied redirected requests and removed only the Host header, leaving Authorization, authusername, authpassword, and authmode in place when a redirect changed scheme, host, or port. This issue is fixed in version 6.5.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Tornadoto a version that resolves this vulnerability.Fixed in 6.5.6
Event History
Frequently Asked Questions
What conditions are required for credential exposure?
An application must use Tornado's SimpleAsyncHTTPClient and follow a redirect that changes the scheme, host, or port. The original request must include Authorization or Tornado authentication fields such as auth_username, auth_password, or auth_mode.
What data can be sent to the redirected destination?
The redirected request can retain the Authorization header and the auth_username, auth_password, and auth_mode fields. Because only the Host header was removed, those credentials may be transmitted to the new redirect target.
Which versions are affected and what fixes the issue?
Versions prior to Tornado 6.5.6 are affected. Upgrading to version 6.5.6 fixes the redirected-request credential retention behavior.