CVE-2020-8562 Lets DNS Rebinding Bypass Kubernetes API Server Proxy Filter

Summary
CVE-2020-8562 lets attackers with Node-creation and API server proxy permissions use DNS rebinding to bypass Kubernetes proxy IP filtering and reach internal services. Minimum DNS TTLs or Konnectivity can mitigate the risk, especially on managed control planes.
Key points
- The flaw is a time-of-check-to-time-of-use race: Kubernetes resolves a destination separately for its security check and for the proxy request.
- An attacker can use DNS rebinding to return different addresses for those lookups and bypass the proxy's IP filter.
- Exploitation requires permission to create Node objects and use the API server proxy, making managed control planes a particular concern.
- The article describes repeated proxy requests targeting localhost-bound services, including the kube-proxy configz endpoint.
- Mitigations include enforcing a minimum DNS TTL for control-plane resolvers or using Konnectivity to keep proxy traffic off the control-plane network.
- The article says the issue is not significant for many clusters but may let attackers probe control-plane networks in managed Kubernetes services.
Article Details
- Vulnerability Types
- Time-of-check to time-of-use (TOCTOU) race condition
- Server-side request forgery (SSRF)
- Exploitation Status
- unknown
- Exploit Availability
- public_poc
- Patch Status
- unavailable
- Workarounds
- Configure DNS services used by control plane nodes to enforce a minimum TTL, ignoring TTLs set by destination DNS servers.
- Use Konnectivity to keep API server proxy requests off the control plane network.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| DOMAIN | ac120002[.]7f000001[.]rbndr[.]us | DNS-rebinding hostname used in the exploitation example to alternate between an allowed address and localhost. |
| DOMAIN | rbndr[.]us | DNS-rebinding service identified as usable infrastructure for the exploit. |
MITRE ATT&CK
T1090 · ProxyThe exploit abuses the Kubernetes API server proxy to send requests to node services, including a localhost-bound kube-proxy config endpoint.T1190 · Exploit Public-Facing ApplicationThe article describes exploiting CVE-2020-8562 in the Kubernetes API server proxy to bypass its destination filter and reach internal services.
