RabbitMQ - это брокер обмена сообщениями и потокового вещания. До версий 4.2.7 и 4.3.1, rabbit_pid_codec:decompose_from_binary/1 анализировал двоичный код ETF и вызывал binary_to_atom(Node, utf8) в поле имени узла. Это достигается из rabbit_volatile_queue:pid_from_name/2, который вызывается для любого имени очереди / ключа маршрутизации, начинающегося с amq.rabbitmq.reply-to..
Проверка членства CandidateNodes происходит после создания атома, и окружающая попытка / ловля не может вернуть атомы (они никогда не GC'd). binary_to_existing_atom не используется. Любой аутентифицированный клиент AMQP может сломать весь Erlang VM (все vhosts, все соединения) с 1M дешевыми запросами. Предварительные условия включают подключение Authenticated AMQP 0-9-1 к любому пределу скорости подключения vhost No достаточно низкому, чтобы сделать невозможными операции 1M.
Эта проблема исправлена в версиях 4.2.7 и 4.3.1.
Показать оригинальное описание (EN)
RabbitMQ is a messaging and streaming broker. Prior to versions 4.2.7 and 4.3.1, rabbit_pid_codec:decompose_from_binary/1 parses a caller-supplied ETF-encoded binary and calls binary_to_atom(Node, utf8) on the node-name field. It is reached from rabbit_volatile_queue:pid_from_name/2, which is invoked for any queue name / routing key beginning amq.rabbitmq.reply-to.. The CandidateNodes membership check happens after the atom is created, and the surrounding try/catch cannot reclaim atoms (they are never GC'd). binary_to_existing_atom is not used. Any authenticated AMQP client can crash the entire Erlang VM (all vhosts, all connections) with ~1M cheap requests. Preconditions include Authenticated AMQP 0-9-1 connection to any vhost No per-connection rate limit low enough to make ~1M operations infeasible. 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
|