mellowagain / gitarena

Software development platform with built-in vcs, issue tracking and code review
MIT License
86 stars 11 forks source link

RUSTSEC-2021-0079: Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss #37

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

Integer overflow in hyper's parsing of the Transfer-Encoding header leads to data loss

Details
Package hyper
Version 0.13.10
URL https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9
Date 2021-07-07
Patched versions >=0.14.10

When decoding chunk sizes that are too large, hyper's code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.

To be vulnerable, you must be using hyper for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.

See advisory page for additional details.

mellowagain commented 2 years ago

Dependency chain for hyper 0.13.10:

mellowagain commented 2 years ago

There are currently plans to replace reqwest with awc. This will result in this issue being automatically fixed. Marking as on hold until awc is implemented.

There are currently no plans to upgrade to a higher hyper version (with reqwest).

mellowagain commented 2 years ago

Affected crate has been removed in c397c6d.