RabbitMQ - это брокер обмена сообщениями и потокового вещания. До версий 4.2.7 и 4.3.1 путь поиска параметров времени выполнения принуждает сегмент URL:компонент к атому с rabbit_data_coercion:to_atom/1 в lookup_component/1 (deps/rabbit/src/rabbit_runtime_parameters.erl), создавая новый атом для любого ранее невидимого значения. Безопасный помощник, rabbit_registry:binary_to_type/1, который использует binary_to_existing_atom с ловушкой, уже существует, но не используется на этом сайте вызова. lookup_component/1 вызывает rabbit_data_coercion:to_atom(Component) на :компонентном сегменте запроса URL, преобразуя поставляемую злоумышленником строку в новый атом.
Поскольку таблица атомов Erlang ограничена, а атомы никогда не собирают мусор, авторизованный политик, выдающий примерно один миллион запросов с различными значениями компонентов, может исчерпать таблицу атомов и сломать узел, что приведет к отказу в обслуживании. Эксплуатация требует привилегий для политиков и примерно одного миллиона запросов. Эта проблема исправлена в версиях 4.2.7 и 4.3.1.
Показать оригинальное описание (EN)
RabbitMQ is a messaging and streaming broker. Prior to versions 4.2.7 and 4.3.1, The runtime-parameters lookup path coerces the URL :component segment to an atom with rabbit_data_coercion:to_atom/1 in lookup_component/1 (deps/rabbit/src/rabbit_runtime_parameters.erl), creating a new atom for any previously unseen value. A safe helper, rabbit_registry:binary_to_type/1, which uses binary_to_existing_atom with a catch, already exists but is not used at this call site. lookup_component/1 calls rabbit_data_coercion:to_atom(Component) on the :component segment of the request URL, converting an attacker-supplied string into a new atom. Because the Erlang atom table is bounded and atoms are never garbage collected, an authorized policymaker issuing roughly one million requests with distinct component values can exhaust the atom table and crash the node, resulting in a denial of service. Preconditions include Exploitation requires policymaker privileges and roughly one million requests.. This issue is fixed in versions 4.2.7 and 4.3.1.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Broadcom Rabbitmq_Server
cpe:2.3:a:broadcom:rabbitmq_server:*:*:*:*:*:*:*:*
|
4.2.0
|
4.2.7
|
|
Broadcom Rabbitmq_Server
cpe:2.3:a:broadcom:rabbitmq_server:*:*:*:*:*:*:*:*
|
4.3.0
|
4.3.1
|