Kyverno до 1.19.1 уязвим для подделки запросов на стороне сервера. Блок-лист выхода по умолчанию (169.254.169.254, 169.254.169.253, metadata.google.internal, 127.0.0.0/8, :: 1/128) и управление токеном области были подключены только к новой библиотеке CEL http.Get/Post и никогда не применялись к устаревшему исполнителю службы apiCall (pkg/engine/apicall/executor.go) или к внешнему пути GlobalContextEntry, который обрабатывает все вызовы, не относящиеся к CEL. Because these paths use a plain net/http client with no egress filtering and no validation of the configured service URL, a ClusterPolicy or GlobalContextEntry author — or, where a deployed policy templates the service URL from the admission resource, a lower-privileged resource submitter — can cause Kyverno to issue GET/POST requests to an arbitrary host, including the cloud metadata endpoint, loopback, and any in-cluster service, reading cloud instance credentials and reaching internal endpoints with Kyverno's network position.
Исполнитель также безоговорочно прикрепляет токен Kyverno's, спроектированный ServiceAccount, к выбранному злоумышленником месту назначения; токен имеет охват аудитории, ограничивая его значение для воспроизведения. Исправлено в 1.19.1.
Показать оригинальное описание (EN)
Kyverno before 1.19.1 is vulnerable to server-side request forgery. The default egress blocklist (169.254.169.254, 169.254.169.253, metadata.google.internal, 127.0.0.0/8, ::1/128) and the scoped-token control were wired only into the new CEL http.Get/Post library and were never applied to the legacy apiCall service executor (pkg/engine/apicall/executor.go) or to the GlobalContextEntry external-API path, which handle every non-CEL context[].apiCall.service call. Because these paths use a plain net/http client with no egress filtering and no validation of the configured service URL, a ClusterPolicy or GlobalContextEntry author — or, where a deployed policy templates the service URL from the admission resource, a lower-privileged resource submitter — can cause Kyverno to issue GET/POST requests to an arbitrary host, including the cloud metadata endpoint, loopback, and any in-cluster service, reading cloud instance credentials and reaching internal endpoints with Kyverno's network position. The executor also unconditionally attaches Kyverno's projected ServiceAccount token to the attacker-chosen destination; the token is audience-scoped, limiting its replay value. Fixed in 1.19.1.
Характеристики атаки
Последствия
Строка CVSS v4.0