Update dependency tornado to v6.4.1 [SECURITY]#60
Conversation
|
Hey! Changelogs info seems to be missing or might be in incorrect format. |
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
e1316be to
479db80
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
479db80 to
ba4a37e
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
This PR contains the following updates:
==6.3.2->==6.4.1==6.0.4->==6.4.1GitHub Vulnerability Alerts
GHSA-qppv-j76h-2rpx
Summary
Tornado interprets
-,+, and_in chunk length andContent-Lengthvalues, which are not allowed by the HTTP RFCs. This can result in request smuggling when Tornado is deployed behind certain proxies that interpret those non-standard characters differently. This is known to apply to older versions of haproxy, although the current release is not affected.Details
Tornado uses the
intconstructor to parse the values ofContent-Lengthheaders and chunk lengths in the following locations:tornado/http1connection.py:445tornado/http1connection.py:621tornado/http1connection.py:671Because
int("0_0") == int("+0") == int("-0") == int("0"), using theintconstructor to parse and validate strings that should contain only ASCII digits is not a good strategy.GHSA-753j-mpmx-qq6g
Summary
When Tornado receives a request with two
Transfer-Encoding: chunkedheaders, it ignores them both. This enables request smuggling when Tornado is deployed behind a proxy server that emits such requests. Pound does this.PoC
Transfer-Encoding: chunkedheaders:This is because Tornado believes that the request has no message body, so it tries to interpret
1\r\nZ\r\n0\r\n\r\nas its own request, which causes a 400 response. With a little cleverness involvingchunk-exts, you can get Tornado to instead respond 405, which has the potential to desynchronize the connection, as opposed to 400 which should always result in a connection closure.Impact
Anyone using Tornado behind a proxy that forwards requests containing multiple
Transfer-Encoding: chunkedheaders is vulnerable to request smuggling, which may entail ACL bypass, cache poisoning, or connection desynchronization.GHSA-w235-7p84-xx57
Summary
Tornado’s
curl_httpclient.CurlAsyncHTTPClientclass is vulnerable to CRLF (carriage return/line feed) injection in the request headers.Details
When an HTTP request is sent using
CurlAsyncHTTPClient, Tornado does not reject carriage return (\r) or line feed (\n) characters in the request headers. As a result, if an application includes an attacker-controlled header value in a request sent usingCurlAsyncHTTPClient, the attacker can inject arbitrary headers into the request or cause the application to send arbitrary requests to the specified server.This behavior differs from that of the standard
AsyncHTTPClientclass, which does reject CRLF characters.This issue appears to stem from libcurl's (as well as pycurl's) lack of validation for the
HTTPHEADERoption. libcurl’s documentation states:pycurl similarly appears to assume that the headers adhere to the correct format. Therefore, without any validation on Tornado’s part, header names and values are included verbatim in the request sent by
CurlAsyncHTTPClient, including any control characters that have special meaning in HTTP semantics.PoC
The issue can be reproduced using the following script:
When the specified server receives the request, it contains the injected header (
Header: Injected) on its own line:The attacker can also construct entirely new requests using a payload with multiple CRLF sequences. For example, specifying a header value of
\r\n\r\nPOST /attacker-controlled-url HTTP/1.1\r\nHost: 727ymeu841qydmnwlol261ktkkqbe24qt.oastify.comresults in the server receiving an additional, attacker-controlled request:Impact
Applications using the Tornado library to send HTTP requests with untrusted header data are affected. This issue may facilitate the exploitation of server-side request forgery (SSRF) vulnerabilities.
CVE-2023-28370
Open redirect vulnerability in Tornado versions 6.3.1 and earlier allows a remote unauthenticated attacker to redirect a user to an arbitrary web site and conduct a phishing attack by having user access a specially crafted URL.
Release Notes
tornadoweb/tornado (tornado)
v6.4.1Compare Source
v6.4Compare Source
v6.3.3Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.