# Ingress-NGINX 控制器 - 通过未 sanitiz 的镜像注解进行配置注入
## 概述
在 ingress-nginx 中发现了一个安全问题,该问题允许通过 `mirror-target` 和 `mirror-host` Ingress 注解注入任意配置到 nginx,从而导致在 ingress-nginx 控制器上下文中执行任意代码,并泄露控制器可访问的所有 Secrets。
## 影响版本
未提供具体影响的版本信息。
## 细节
- 攻击者可以通过设置特定的 Ingress 注解 `mirror-target` 和 `mirror-host` 来注入任意配置到 nginx。
- 这种注入方式可能导致在 ingress-nginx 控制器的上下文中执行任意代码。
- 此外,还可能泄露控制器可访问的 Secrets,特别是在默认安装中,控制器可以访问集群范围内的所有 Secrets。
## 影响
- 允许在 ingress-nginx 控制器上下文中执行任意代码。
- 导致泄露控制器可访问的 Secrets,包括集群范围内的 Secrets。
是否为 Web 类漏洞: 是
判断理由:
| # | POC 描述 | 源链接 | 神龙链接 |
|---|---|---|---|
| 1 | A security issue was discovered in ingress-nginx https-//github.com/kubernetes/ingress-nginx where the `mirror-target` and `mirror-host` Ingress annotations can be used to inject arbitrary configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.) | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-1098.yaml | POC详情 |
标题: CVE-2025-1098: ingress-nginx controller - configuration injection via unsanitized mirror annotations · Issue #131008 · kubernetes/kubernetes -- 🔗来源链接
标签:
暂无评论