OpenTelemetry Operator — это Kubernetes Operator для OpenTelemetry Collector. Prior to 0.152.0, cmd/otel-allocator TargetAllocator instances with targetAllocator.prometheusCR.enabled set to true preserve a selected ServiceMonitor endpoint's bearerTokenFile value as HTTPClientConfig.Authorization.CredentialsFile. Арендатор, который может создать или обновить ServiceMonitor, соответствующий serviceMonitorSelector и serviceMonitorNamespaceSelector, может указать bearerTokenFile на файл в Collector pod, включая /var/run/secrets/kubernetes.io/serviceaccount/token, и направить скребок на конечную точку, контролируемую арендатором.
Collector считывает этот файл во время скребка и отправляет его содержимое в качестве авторизации носителя на каждом интервале скребка. Эксплуатация также требует, чтобы токен Collector service-account или другой чувствительный файл был смонтирован, а Collector достиг выбранной цели. Управление DenyFSAccessThroughSMs отсутствовало, что позволяло раскрыть сервисный аккаунт Collector's JWT или другие смонтированные файлы, и в результате влияние Kubernetes API ограничено разрешениями сервисного аккаунта Collector.
Эта проблема исправлена в версии 0.152.0.
Показать оригинальное описание (EN)
The OpenTelemetry Operator is a Kubernetes Operator for the OpenTelemetry Collector. Prior to 0.152.0, cmd/otel-allocator TargetAllocator instances with targetAllocator.prometheusCR.enabled set to true preserve a selected ServiceMonitor endpoint's bearerTokenFile value as HTTPClientConfig.Authorization.CredentialsFile. A tenant who can create or update a ServiceMonitor matched by serviceMonitorSelector and serviceMonitorNamespaceSelector can point bearerTokenFile at a file in the Collector pod, including /var/run/secrets/kubernetes.io/serviceaccount/token, and direct scraping to a tenant-controlled endpoint. The Collector reads that file at scrape time and sends its contents as bearer authorization on every scrape interval. Exploitation also requires the Collector service-account token or another sensitive file to be mounted and the Collector to reach the chosen target. The DenyFSAccessThroughSMs control was absent, allowing disclosure of the Collector's service-account JWT or other mounted files, and resulting Kubernetes API impact is limited by the Collector service account's permissions. This issue is fixed in version 0.152.0.
Характеристики атаки
Последствия
Строка CVSS v3.1