Неэффективная уязвимость Algorithmic Complexity в реализации mtrudel bandit HTTP/2 позволяет неаутентифицированному удаленному злоумышленнику выводить сервер CPU через небольшие кадры SETTINGS или WINDOW_UPDATE уровня подключения. Злоумышленник открывает тысячи потоков, ответы которых блокируются в окне отправки соединения, а затем отправляет дешевые кадры, каждый из которых заставляет сервер пройти всю очередь заблокированных сообщений. In the reporter's run, with 3,000 blocked streams a single 9-byte SETTINGS frame took 133 ms to process. do_pending_sends/2 in lib/bandit/http2/connection.ex retries every queued send and, before each retry, removes that entry from the queue with List.delete/2, so one frame costs O(n²) list operations for n blocked streams. max_concurrent_streams defaults to :infinity, so the attacker chooses n.
Эта проблема затрагивает бандитов: от 0.3.4 до 1.14.0.
Показать оригинальное описание (EN)
Inefficient Algorithmic Complexity vulnerability in the HTTP/2 implementation of mtrudel bandit allows an unauthenticated remote attacker to exhaust server CPU via small SETTINGS or connection-level WINDOW_UPDATE frames. The attacker opens thousands of streams whose responses block on the connection send window, then sends cheap frames that each make the server walk the whole queue of blocked sends. In the reporter's run, with 3,000 blocked streams a single 9-byte SETTINGS frame took 133 ms to process. do_pending_sends/2 in lib/bandit/http2/connection.ex retries every queued send and, before each retry, removes that entry from the queue with List.delete/2, so one frame costs O(n²) list operations for n blocked streams. max_concurrent_streams defaults to :infinity, so the attacker chooses n. This issue affects bandit: from 0.3.4 before 1.14.0.
Характеристики атаки
Последствия
Строка CVSS v4.0