PT-2021-14399 · Hyper · Hyper

Albinowax

+1

·

Published

2021-02-05

·

Updated

2024-06-15

·

CVE-2021-21299

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: hyper versions 0.12.0 through 0.13.9 hyper versions 0.14.0 through 0.14.2
Description: The HTTP server code in hyper has a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks". To determine if vulnerable, all these things must be true: using hyper as an HTTP server, using HTTP/1.1, and using a vulnerable HTTP proxy upstream to hyper. If an upstream proxy correctly rejects the illegal transfer-encoding headers, the desync attack cannot succeed. If there is no proxy upstream of hyper, hyper cannot start the desync attack, as the client will repair the headers before forwarding.
Recommendations: For hyper versions 0.12.0 through 0.13.9, update to version 0.13.10 or later. For hyper versions 0.14.0 through 0.14.2, update to version 0.14.3 or later. As a temporary workaround, consider rejecting requests that contain a transfer-encoding header. Alternatively, ensure any upstream proxy handles transfer-encoding correctly.

Fix

HTTP Request/Response Smuggling

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-21299
GHSA-6HFQ-H8HQ-87MF
OPENSUSE-SU-2024:12238-1
OPENSUSE-SU-2024:12239-1
OPENSUSE-SU-2024:12274-1
RUSTSEC-2021-0020

Affected Products

Hyper