osac-operatorのコンソールプロキシに、任意のプロセスを実行される脆弱性
概要
osac-operatorのconsole-proxyが、Secretに置かれたkubeconfigを検証せずに読み込むため、Secretを作成または変更できる攻撃者に、プロキシのPod内で任意のプロセスを実行される脆弱性です。サーバーアドレスを使ったSSRFも残ります。リモートとautoのVMクラスターモードが影響を受け、localモードは影響を受けません。実行の経路はコミット7e4222bで修正されていますが、SSRFは修正されていません。最新の情報を確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
osac-operatorのconsole-proxyが、Secretに置かれたkubeconfigを検証せずに読み込むため、Secretを作成または変更できる攻撃者に、プロキシのPod内で任意のプロセスを実行される脆弱性です。サーバーアドレスを使ったSSRFも残ります。リモートとautoのVMクラスターモードが影響を受け、localモードは影響を受けません。実行の経路はコミット7e4222bで修正されていますが、SSRFは修正されていません。最新の情報を確認してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| osac-projectosac-operator | — | 記載なし |
| gogithub.com/osac-project/osac-operator |
0.0.4 未満→ 0.0.4 |
0.0.4 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
OSAC operator is a Kubernetes operator. In the affected revision identified as 8220502, the console-proxy RemoteConfigResolver parses Kubernetes Secret kubeconfig data with clientcmd.RESTConfigFromKubeConfig without sanitizing the resulting rest.Config. An attacker who can create or modify a Secret labeled osac.openshift.io/remote-cluster-kubeconfig: "true" in a namespace where the proxy's RoleBinding grants Secret read access can supply users[].user.exec. When rest.TransportFor builds the HTTP transport for an upstream WebSocket connection, client-go invokes that exec credential plugin, spawning an arbitrary process as the osac-console-proxy service account inside the pod. Attacker-controlled clusters[].server also enables server-side request forgery from the proxy pod. Remote and auto VM cluster modes are affected, with auto the default; exclusively local mode does not read kubeconfig Secrets and is unaffected. The credential-plugin execution path is patched in commit 7e4222b; that patch does not address the described server-address SSRF path.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com