← Übersicht Puppet / OpenVox

With allow_subject_alt_names enabled, any enrolled agent can add new DNS SANs at CSR renewal without operator review

GHSA-2vpj-96q8-p9j5

Mittel · CVSS 6.8 Netzwerk · mit Login Fix verfügbar

Veröffentlicht
13.10.2026 11:40
Zuletzt geändert
13.10.2026
EPSS (30 Tage)
unbekannt
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Before commit `02fb61556aa0`, with `allow_subject_alt_names: true`, the CSR-body branch of `POST /certificate_renewal` signed whatever DNS SANs the agent asked for, including the Puppet server's own name. The request needed only the agent's own certificate. It didn't go through autosign policy or an operator. The docs presented the setting as risky with autosign. They didn't say that it also let every enrolled node grant itself new names at renewal. The default was safe. The SAN gate added in `145c5b6` (#293) covers every signing path, and with the setting off, renewal could only carry forward SANs the presented certificate already held. This report is about the opt-in. Found while re-checking an independent audit (finding A1 at `fb856f1`) against `main` at `145cb53`. ## Where Line numbers are as of `145cb53`, before the fix. - `handlePostCertificateRenewal` → `CA.Renew` (`internal/ca/signing.go:1168`) → `signWithDuration(..., presentedCert)` (`signing.go:1297`). - `checkSubjectAltNames` (`signing.go:585`) built a baseline from the presented certificate's SANs (`:486-489`) plus the certname (`:494`). With the setting on, every requested DNS name passed, and `:589` copied them into the certificate. `issueLeafLocked` always sets EKU `serverAuth, clientAuth`. - `docs/configuration.md:1318-1360` ("Subject alternative names requested by a CSR") explained the impersonation risk only for autosigning and suggested "a narrow autosign policy alongside it". ## Reproduction On a build before the fix, with `allow_subject_alt_names: true` and an agent `agent1.example.com` holding a certificate from this CA: ```sh openssl req -new -newkey rsa:2048 -nodes -keyout evil.key \ -subj "/CN=agent1.example.com" \ -addext "subjectAltName=DNS:puppet.example.com" -out evil.csr curl --cacert ca_crt.pem --cert agent.crt --key agent.key \ -X POST --data-binary @evil.csr \ https://puppet.example.com:8140/puppet-ca/v1/certificate_renewal -o new.pem openssl verify -CAfile ca_crt.pem -purpose sslserver \ -verify_hostname puppet.example.com new.pem ``` The last command prints `OK`. The auditors ran the equivalent against `fb856f1`, before the SAN gate existed, and served TLS as the Puppet server with the result. ## Impact An operator who turned the setting on so a few nodes could carry extra names, and kept manual signing to review them, got no review at renewal. Any compromised node could mint a certificate the whole fleet accepts as the Puppet server and man-in-the-middle catalog delivery, which is code execution on every agent. OpenVox Server has no CSR-based renewal, so its `allow-subject-alt-names` doesn't carry this exposure. ## Fix Fixed on `main` on 2026-10-13 in commit [`02fb61556aa0d22de7be4da321d0ab23016ce980`](https://github.com/voxpupuli/openvox-ca/commit/02fb61556aa0d22de7be4da321d0ab23016ce980) (PR #471, closes #469), Go module version `v0.0.0-20261013093713-02fb61556aa0`. Renewal now recreates the presented certificate, as OpenVox Server's renewal does, on both paths: - A renewal with a CSR body (re-key) takes only the public key from the CSR. Any other subject attributes, SANs or extensions it carries are ignored, not refused. A renewal with an empty body reissues the same key. - The new certificate carries the presented one's subject and every extension forward unchanged, including all four SAN types, key usage, extended key usage and the Puppet OID extensions. So a renewal can neither add nor drop a name or a usage. Only the extensions that must describe the new certificate are set afresh: the authority and subject key identifiers, CRL distribution points, authority information access and basic constraints. - `allow_subject_alt_names` no longer applies to renewal, whatever its value. It governs only the names a CSR may ask for on a first issuance, which goes through autosign policy or an operator. To change a certificate's names, clean it and sign a new request. - The docs for `allow_subject_alt_names`, the renewal API and the migration guide say so, and specs check that a re-key CSR asking for a new SAN is renewed without it. ## What to do If you run with `allow_subject_alt_names: true`, move to a build that includes `02fb61556aa0` (2026-10-13 or later). Then check the certificates issued by renewal for SANs you did not approve, and revoke any you find. Until you can upgrade, set `allow_subject_alt_names: false` unless you need it. With it off, renewal could only carry forward SANs the presented certificate already held.

Betroffene Pakete im beobachteten Stack

Gogithub.com/voxpupuli/openvox-ca0.0.0-20261013093713-02fb61556aa0GHSA-2vpj-96q8-p9j5

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · mit Login) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.