osac-operatorのコンソールプロキシに、任意のプロセスを実行される脆弱性
Summary
osac-operatorのconsole-proxyが、Secretに置かれたkubeconfigを検証せずに読み込むため、Secretを作成または変更できる攻撃者に、プロキシのPod内で任意のプロセスを実行される脆弱性です。サーバーアドレスを使ったSSRFも残ります。リモートとautoのVMクラスターモードが影響を受け、localモードは影響を受けません。実行の経路はコミット7e4222bで修正されていますが、SSRFは修正されていません。最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
osac-operatorのconsole-proxyが、Secretに置かれたkubeconfigを検証せずに読み込むため、Secretを作成または変更できる攻撃者に、プロキシのPod内で任意のプロセスを実行される脆弱性です。サーバーアドレスを使ったSSRFも残ります。リモートとautoのVMクラスターモードが影響を受け、localモードは影響を受けません。実行の経路はコミット7e4222bで修正されていますが、SSRFは修正されていません。最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| osac-projectosac-operator | — | Not listed |
| gogithub.com/osac-project/osac-operator |
< 0.0.4→ 0.0.4 |
0.0.4 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- 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