OpenShiftの画像配信サーバーに脆弱性、隣接ネットワークからクラスターのpull secretが漏えいするおそれ
概要
OpenShiftのベアメタルのプロビジョニングで使われるimage-customization-controllerに脆弱性が見つかり、同じプロビジョニングネットワーク上の攻撃者が、認証なしで設定ファイルを含む画像を取得できるおそれがあります。画像にはクラスターのpull secretが含まれるため、これが漏えいする可能性があります。修正版の有無については、最新の情報を確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
OpenShiftのベアメタルのプロビジョニングで使われるimage-customization-controllerに脆弱性が見つかり、同じプロビジョニングネットワーク上の攻撃者が、認証なしで設定ファイルを含む画像を取得できるおそれがあります。画像にはクラスターのpull secretが含まれるため、これが漏えいする可能性があります。修正版の有無については、最新の情報を確認してください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
A flaw was found in the image-customization-controller used in OpenShift's bare metal provisioning stack. The controller registers an HTTP file server on port 8084 with no authentication. The custom imageFileSystem implementation exposes a browsable HTML directory listing of all registered images at the root path. The only access control on per-host images is the random UUID filename; the directory listing discloses those UUIDs to any caller on the provisioning network. Each served image embeds an Ignition config containing the base64-encoded cluster pull secret, optional IRONIC_RAMDISK_SSH_KEY, proxy settings, and per-host NetworkManager keyfiles. An adjacent network attacker can enumerate all image UUIDs via directory listing, download any image, extract the embedded Ignition config, and recover the cluster pull secret and SSH key.
Evidence
pkg/imagehandler/imagefilesystem.go — root directory is browsable and enumerates all UUID image names
func (f *imageFileSystem) Readdir(n int) ([]fs.FileInfo, error) {
f.mu.Lock()
defer f.mu.Unlock()
result := []fs.FileInfo{}
for _, im := range f.images {
result = append(result, im)
}
return result, nil
}
func (f *imageFileSystem) Open(name string) (http.File, error) {
f.log.Info("Open", "path", name)
if name == "/" {
return f, nil
}
...
cmd/controller/main.go — file server bound on all interfaces without auth or TLS
http.Handle("/", http.FileServer(im…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- web secalert@redhat.com
- web secalert@redhat.com
- web secalert@redhat.com
- web secalert@redhat.com
- web nvd.nist.gov
- web github.com