Уязвимость чрезмерного потребления ресурсов сервера из-за быстрого создания и сброса HTTP/2-запросов
Описание
Злоумышленник, использующий HTTP/2-клиент для быстрого создания запросов и их немедленного сброса, может вызвать чрезмерное потребление ресурсов сервера. Хотя общее количество запросов ограничено настройкой http2.Server.MaxConcurrentStreams
, сброс выполняющегося запроса позволяет злоумышленнику создать новый запрос, пока существующий всё ещё выполняется.
После применения исправления HTTP/2-серверы теперь ограничивают количество одновременно выполняющихся обработчиков (goroutines) пределом параллельности потоков (MaxConcurrentStreams
). Новые запросы, поступающие при достижении лимита (что возможно только после сброса клиентом существующего выполняющегося запроса), будут поставлены в очередь до завершения одного из обработчиков. Если очередь запросов становится слишком большой, сервер разрывает соединение.
Эта проблема также исправлена в пакете golang.org/x/net/http2
для пользователей, которые вручную настраивают HTTP/2. Значение лимита параллельности потоков по умолчанию составляет 250 потоков (запросов) на одно HTTP/2-соединение. Это значение можно изменить с помощью пакета golang.org/x/net/http2
.
Тип уязвимости
DoS атака
Ссылки
- Vendor Advisory
- Vendor Advisory
- Issue TrackingVendor Advisory
- Release Notes
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing List
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing List
Уязвимые конфигурации
Одно из
Одно из
Одно из
EPSS
7.5 High
CVSS3
Дефекты
Связанные уязвимости
A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; s...
A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; s...
A malicious HTTP/2 client which rapidly creates requests and immediate ...
HTTP/2 rapid reset can cause excessive work in net/http
EPSS
7.5 High
CVSS3