GitHub advisory · Go
Miren Runtime: Authentication bypass in RPC layer: unverified TLS client certificates grant cluster superuser access
Description
The Miren Runtime RPC server (QUIC/HTTP3, default port :8443) requested TLS
client certificates but never verified that a presented certificate chained to
the cluster Certificate Authority. Because a client-certificate identity is
granted a blanket RBAC bypass, any party able to reach the RPC listener could
present a forged, self-signed certificate and be authenticated as a cluster
superuser — no valid CA signature, credential, or prior authorization
required.
This is a complete, unauthenticated authentication bypass against the cluster control plane. An attacker who can reach the RPC port can perform any RPC operation with full privileges: enumerate and manipulate entities, apps, sandboxes, disks, and other cluster resources. This yields full compromise of confidentiality, integrity, and availability of the cluster and everything it orchestrates.
Exposure is network-reachability–gated only. Deployments that expose :8443
beyond a trusted network (e.g. 0.0.0.0/0) are remotely exploitable from the
internet by anyone; deployments that restrict :8443 to a trusted network are
exploitable by any party with access to that network.
Due to a lack of ability to detect if the RPC has been accessed unauthorized, Miren recommends that all applications are redeployed and any credentials reference in environment variables are rotated. A read-only script to help review standing access, recent changes, and the exact secrets to rotate is available at https://github.com/mirendev/runtime/tree/089582a132f7fc1e1d5b5c0aee1e0911535fed53/scripts/security/audit-exposure.
Three independent factors combined to produce the bypass:
tls.RequestClientCert, which
requests a client certificate but does not verify it against the configured
ClientCAs.…Manual fix · Go
go get miren.dev/runtime@v0.11.1Sources