py3-cassandra-medusa
0.19.1-r1
5.3
CVSS V3
AIOHTTP has problems in HTTP parser (the python one, not llhttp)
The HTTP parser in AIOHTTP has numerous problems with header parsing, which could lead to request smuggling.
This parser is only used when AIOHTTP_NO_EXTENSIONS
is enabled (or not using a prebuilt wheel).
Content-Length
valuesRFC 9110 says this:
AIOHTTP does not enforce this rule, presumably because of an incorrect usage of the builtin int
constructor. Because the int
constructor accepts +
and -
prefixes, and digit-separating underscores, using int
to parse CL values leads AIOHTTP to significant misinterpretation.
Verify that a Content-Length
value consists only of ASCII digits before parsing, as the standard requires.
RFC 9110 says this:
AIOHTTP's HTTP parser does not enforce this rule, and will happily process header values containing these three forbidden characters without replacing them with SP.
Reject all messages with NUL, CR, or LF in a header value. The translation to space thing, while technically allowed, does not seem like a good idea to me.
RFC 9112 says this:
AIOHTTP does not enforce this rule, and will simply strip any whitespace before the colon in an HTTP header.
Reject all messages with whitespace before a colon in a header field, as the standard requires.
Example requests are embedded in the previous section. To reproduce these bugs, start an AIOHTTP server without llhttp (i.e. AIOHTTP_NO_EXTENSIONS=1
) and send the requests given in the previous section. (e.g. by printf
ing into nc
)
Each of these bugs can be used for request smuggling.