istiod crash (DoS) via istio.io/debug XDS request with a malformed resource name
Description
Any workload with a mesh identity can crash istiod with a single istio.io/debug XDS request whose resource name fails URL parsing, and istiod crash-loops while the request is repeated.
Details
istiod serves debug information over XDS on port 15012 (type istio.io/debug, used by istioctl x internal-debug). In parseAndValidateDebugRequest (pilot/pkg/xds/debuggen.go) the resource name is passed to url.Parse and the error is ignored, so a name that fails to parse (for example %zz, http://[::1, or one containing a control character) leaves the parsed URL nil and the next field access panics. The panic is not recovered on the XDS stream and the istiod process exits. The crash happens before the namespace allowlist check, so the caller only needs a valid mesh identity: a workload certificate or a service account token with audience istio-ca, which any user who can create a pod can obtain.
Patches
Fixes are available in 1.30.8 and 1.31.4
Workarounds: none in configuration. Restrict who can create pods and service account tokens; restarting istiod recovers it until the request is repeated.
Proof of concept
- Install Istio (default or minimal profile).
- From a context with a mesh identity, run:
``sh istioctl x internal-debug '%zz' ``
- istiod panics with a nil pointer dereference and restarts. Repeating the request keeps it in CrashLoopBackOff.
Impact
Denial of service against the istiod control plane for the whole mesh: no config or endpoint updates, no certificates for new workloads, and failing admission webhooks. If the outage lasts beyond the workload certificate lifetime, mTLS between workloads starts to fail. Any user who can create a pod in any namespace can trigger it on a default install.