Netty - это асинхронный сетевой прикладной фреймворк с открытым исходным кодом для быстрой разработки поддерживаемых высокопроизводительных серверов и клиентов. В Netty (io.netty:netty-codec-http2) перед версией 4.1.60.Final имеется уязвимость, позволяющая осуществлять контрабанду запросов. Если заголовок Content-Length присутствует в первоначальном запросе HTTP/2, поле не проверяется Http2MultiplexHandler по мере его распространения.
Это нормально, если запрос не проксимирован как HTTP/1.1. Если запрос поступает в виде потока HTTP/2, преобразуется в объекты домена HTTP/1.1 (HttpRequest, HttpContent и т. д.) через Http2StreamFrameToHttpObjectCodec , а затем отправляется в канал дочернего канала и проксиируется через удаленный узел как HTTP/1.1, это может привести к контрабанде запроса. В случае прокси пользователи могут предположить, что длина контента каким-то образом подтверждена, что не так.
Если запрос перенаправляется на серверный канал, который является соединением HTTP/1.1, Content-Length теперь имеет значение и должен быть проверен. Злоумышленник может проносить запросы внутрь тела, когда он понижается с HTTP/2 до HTTP/1.1. Примером атаки может служить связанный GitHub Advisory.
Пользователи могут быть затронуты только в том случае, если все это верно: используется HTTP2MultiplexCodec или Http2FrameCodec, Http2StreamFrameToHttpObjectCodec используется для преобразования в HTTP/1.1 объекта, и эти HTTP/1.1 объекты пересылаются другому удаленному узлу. Это было исправлено в 4.1.60.Final As обходном пути, пользователь может сделать проверку самостоятельно, реализовав пользовательский ChannelInboundHandler, который помещен в ChannelPipeline позади Http2StreamFrameToHttpObjectCodec.
Показать оригинальное описание (EN)
Netty is an open-source, asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. In Netty (io.netty:netty-codec-http2) before version 4.1.60.Final there is a vulnerability that enables request smuggling. If a Content-Length header is present in the original HTTP/2 request, the field is not validated by `Http2MultiplexHandler` as it is propagated up. This is fine as long as the request is not proxied through as HTTP/1.1. If the request comes in as an HTTP/2 stream, gets converted into the HTTP/1.1 domain objects (`HttpRequest`, `HttpContent`, etc.) via `Http2StreamFrameToHttpObjectCodec `and then sent up to the child channel's pipeline and proxied through a remote peer as HTTP/1.1 this may result in request smuggling. In a proxy case, users may assume the content-length is validated somehow, which is not the case. If the request is forwarded to a backend channel that is a HTTP/1.1 connection, the Content-Length now has meaning and needs to be checked. An attacker can smuggle requests inside the body as it gets downgraded from HTTP/2 to HTTP/1.1. For an example attack refer to the linked GitHub Advisory. Users are only affected if all of this is true: `HTTP2MultiplexCodec` or `Http2FrameCodec` is used, `Http2StreamFrameToHttpObjectCodec` is used to convert to HTTP/1.1 objects, and these HTTP/1.1 objects are forwarded to another remote peer. This has been patched in 4.1.60.Final As a workaround, the user can do the validation by themselves by implementing a custom `ChannelInboundHandler` that is put in the `ChannelPipeline` behind `Http2StreamFrameToHttpObjectCodec`.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Netty Netty
cpe:2.3:a:netty:netty:*:*:*:*:*:*:*:*
|
— |
4.1.60
|
|
Netapp Oncommand_Api_Services
cpe:2.3:a:netapp:oncommand_api_services:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Oncommand_Workflow_Automation
cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |
|
Quarkus Quarkus
cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:*
|
— |
<= 1.13.7
|
|
Apache Kudu
cpe:2.3:a:apache:kudu:*:*:*:*:*:*:*:*
|
— |
1.16.0
|
|
Apache Zookeeper
cpe:2.3:a:apache:zookeeper:3.5.9:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Cloud_Native_Core_Policy
cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:*
|
— | — |