Неправильная проверка сертификата посредством понижения глобальной версии SSL-контекста в Apache Storm Prometheus Reporter
Затронутые версии: с 2.6.3 по 2.8.6. Описание:
В производственных развертываниях, где администратор включает Storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation (по умолчанию он отключен), намереваясь повлиять только на репортер Prometheus, недокументированный глобальный побочный эффект создает поверхность атаки на каждом канале связи, защищенном TLS, в демоне Storm. Класс PrometheusPreparableReporter реализует INSECURE_TRUST_MANAGER, который принимает все сертификаты SSL без проверки, с пустыми методами checkClientTrusted и checkServerTrusted.
Наиболее важно то, что когда опция конфигурацииstorm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation включена (по умолчанию = отключена) для соединений HTTPS Prometheus PushGateway, INSECURE_CONNECTION_FACTORY вызывает SSLContext.setDefault(sslContext), который глобально заменяет контекст SSL JVM по умолчанию, а не применяет небезопасный контекст только к соединению Prometheus. Эта полезная нагрузка проходит через конфигурацию Storm.yaml → PrometheusPreparableReporter.prepare() → INSECURE_CONNECTION_FACTORY → SSLContext.setDefault(), что приводит к снижению уровня безопасности TLS в масштабах всей JVM. Все последующие HTTPS-соединения в процессе, включая ZooKeeper, Thrift, Netty и соединения пользовательского интерфейса, молча доверяют всем сертификатам, включая самозаверяющие, просроченные и созданные злоумышленником, что позволяет перехватывать состояние кластера, отправку топологии, данные кортежа и административные учетные данные по принципу «человек посередине».
Смягчение: пользователям версии 2.x следует обновиться до версии 2.8.7, если используется Prometheus Metrics Reporter. Пользователи Prometheus Metrics Reporter, которые не могут выполнить обновление немедленно, должны удалить настройкуstorm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation: true из своей конфигурации Storm.yaml и вместо этого настроить правильное хранилище доверенных сертификатов, содержащее сертификат PushGateway.
Показать оригинальное описание (EN)
Improper Certificate Validation via Global SSL Context Downgrade in Apache Storm Prometheus Reporter Versions Affected: from 2.6.3 to 2.8.6 Description: In production deployments where an administrator enables storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation (by default it is disabled) intending to affect only the Prometheus reporter, the undocumented global side effect creates an attack surface across every TLS-protected communication channel in the Storm daemon. The PrometheusPreparableReporter class implements an INSECURE_TRUST_MANAGER that accepts all SSL certificates without validation, with empty checkClientTrusted and checkServerTrusted methods. Most critically, when the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation configuration option is enabled (default = disabled) for HTTPS Prometheus PushGateway connections, the INSECURE_CONNECTION_FACTORY calls SSLContext.setDefault(sslContext), which globally replaces the JVM's default SSL context rather than applying the insecure context only to the Prometheus connection. This payload flows through storm.yaml configuration → PrometheusPreparableReporter.prepare() → INSECURE_CONNECTION_FACTORY → SSLContext.setDefault(), resulting in a JVM-wide TLS security downgrade. All subsequent HTTPS connections in the process - including ZooKeeper, Thrift, Netty, and UI connections - silently trust all certificates, including self-signed, expired, and attacker-generated ones, enabling man-in-the-middle interception of cluster state, topology submissions, tuple data, and administrative credentials. Mitigation: 2.x users should upgrade to 2.8.7 if the Prometheus Metrics Reporter is used. Prometheus Metrics Reporter Users who cannot upgrade immediately should remove the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation: true setting from their storm.yaml configuration and instead configure a proper truststore containing the PushGateway's certificate.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Apache Storm_Prometheus_Reporter
cpe:2.3:a:apache:storm_prometheus_reporter:*:*:*:*:*:*:*:*
|
2.6.3
|
2.8.7
|