
The chain has no exploit payload, no memory corruption, no stolen password and no user interaction. It has a certificate — public data — presented in a list where the server believed any entry.
Step 1: reach the listener
The target is TCP 8443 on any LXD or MicroCloud member. No authentication is needed to start the handshake, and the server presents its own certificate before the client proves anything. It identifies the product, and often the host or the cluster.
Reachability is the only precondition — and the control defenders most often trade away.
Step 2: obtain a certificate that is in the trust store
The server's own certificate is free. Every TLS handshake returns it in the clear. Clusters put server certificates in each other's trust stores, so on a cluster member that certificate is a trusted credential. The advisory confirms that appending the server's own certificate reaches the database gateway, and another member's certificate grants internal cluster access.
Client certificates are readable by trusted clients. The certificates API lists trust-store entries to anyone already trusted. One compromised workstation yields a collection of public certificates.
They leak the ordinary way. Backups, images, tickets, old laptops and other trust stores carry certificates. None is a private key, which is why none was treated as a secret.
MicroCloud adds an interception path. An attacker can intercept the public TLS certificate of a joining cluster member and authenticate as that member. A join is when a new certificate is expected and circulated — the wrong moment for the identity check to be a set membership test.
Step 3: present the chain
The attacker generates a key pair and self-signed leaf, keeps the private key, then appends the victim's certificate:
leaf: attacker's own certificate (key held)
intermediate: victim's public certificate (key not held, never needed)
tls.RequestClientCert accepts the chain without validating it. The handshake completes, CertificateVerify proves the attacker owns the leaf, and the application check finds the victim's fingerprint in the trust store, compares that certificate with itself, and authenticates the caller as the victim.
Step 4: act as the victim
The attacker inherits the victim's entitlements. An ordinary client allowed to create instances can create a privileged container with the host's / bind-mounted into it — a root shell with a container in front of it.
A cluster member certificate is better: members are the control plane, trusted for operations no ordinary client can perform. The database gateway — the dqlite traffic that replicates cluster state — uses the same identity, so the attacker reaches cluster internals rather than one API surface.
The flaw also lets a client renew or delete any trust-store entry through the self-service paths — the quiet half of persistence: remove the defender's certificate and incident response loses its access.
Step 5: root, then the estate
On the host, root on the LXD API is root on the machine: every container and VM, their filesystems, their secrets, the host's keys. On MicroCloud the cluster's internal trust carries the attacker to the other members — one node compromised is the private cloud compromised.
The VM agent connection over vsock uses the same check, exposing the guest-to-host boundary. That path needs a running guest first, which lowers its ordering but not its kind.
The authorization side effect
The unverified chain was also passed to the authorization scriptlet. A token or OIDC client that never authenticated by mutual TLS can present an arbitrary certificate and feed the scriptlet attacker-chosen fields; any policy that reads them is deciding on data the attacker chose.
Why detection is hard
A successful bypass is logged as a successful authentication: no malformed request, no failed login, no payload signature, and a certificate the server already trusted. What remains is behavioural: an unseen certificate subject, a new privileged container with a host mount, a trust-store entry that appeared or vanished, a dqlite connection from an unexpected address.
Part 10 orders those signals starting with the patch, because every other control compensates for a check upstream has fixed.

Next: Part 10 — the remediation ladder: patch each line, purge the CA entries, restrict the listener, rotate what was public, and verify the fix rather than the version string.

Comments (0)