Описание Nimbus инсценирует класс, названный топологией topology.scheduler.strategy, при его планировании. Список разрешений, предназначенный для ограничения этого выбора, nimbus.scheduler.strategy.class.whitelist, рассматривался как «разрешить любой класс» при отключении, и у него не было записи в отправленном defaults.yaml, поэтому отключено было отправленное состояние. Поэтому аутентифицированный отправитель может заставить Nimbus инстансифицировать любой класс на Nimbus-классовом пути, который имеет безаргументный конструктор.
Артефакты собственного производства Storm содержат классы с подходящими для этого побочными эффектами: инстанциация org.apache.storm.testing.InProcessZookeeper запускает сервер ZooKeeper с собственными потоками и сокетами и ничто его не закрывает, а org.apache.storm.LocalCluster ведет себя аналогично. Таким образом, повторные представления потребляют потоки, сокеты и память в самом привилегированном демоне в кластере. Смягчение Upgrade до 3.1.0, где отключенный список разрешений означает стратегии, поставляемые с Storm, а не любого класса.
Обратите внимание, что это изменение поведения: кластер, выполняющий стратегию планировщика out-of-tree без явного списка разрешений, будет отказывать в этих топологиях до тех пор, пока класс не будет добавлен в nimbus.scheduler.strategy.class.whitelist. Сообщение об отказе именует отвергнутый класс и ключ конфигурации. Пользователи, которые не могут обновиться сразу, должны явно установить nimbus.scheduler.strategy.class.whitelist на стратегии, которые они намерены разрешить.
Показать оригинальное описание (EN)
Description Nimbus instantiates the class named by a topology's `topology.scheduler.strategy` when scheduling it. The allowlist intended to constrain that choice, `nimbus.scheduler.strategy.class.whitelist`, was treated as "allow any class" when unset, and it had no entry in the shipped `defaults.yaml`, so unset was the shipped state. An authenticated submitter could therefore cause Nimbus to instantiate any class on the Nimbus classpath that has a no-argument constructor. Storm's own production artifacts contain classes with side effects suitable for this: instantiating `org.apache.storm.testing.InProcessZookeeper` starts a ZooKeeper server with its own threads and sockets and nothing closes it, and `org.apache.storm.LocalCluster` behaves similarly. Repeated submissions therefore consume threads, sockets and memory in the most privileged daemon in the cluster. Mitigation Upgrade to 3.1.0, where an unset allowlist means the strategies shipped with Storm rather than any class. Note that this is a behaviour change: a cluster running an out-of-tree scheduler strategy without an explicit allowlist will have those topologies refused until the class is added to `nimbus.scheduler.strategy.class.whitelist`. The rejection message names the refused class and the configuration key. Users who cannot upgrade immediately should set `nimbus.scheduler.strategy.class.whitelist` explicitly to the strategies they intend to permit.
Характеристики атаки
Последствия
Строка CVSS v3.1