Repository navigation
Description
Priority: P2, conditional security issue. Reviewed at main deff5f6.
An administrator can review one pending node certificate and unknowingly approve another. The password/MFA check authenticates the administrator, but the confirmation does not identify the certificate they reviewed.
Conditions and impact
This requires possession of an installation-CA-signed certificate and its private key for the same node, still valid for TLS but unknown to the restored registry. For example, a backup predates certificates A and B; A was stolen and subsequently revoked by renewal to B, but restoring that backup loses both registrations. While the administrator reviews legitimate B, the holder of A presents it again. The pending request changes to A before the administrator submits the confirmation. A is registered and the node's other registered certificates are revoked, restoring the stolen identity's eligibility for gateway authentication.
This is not anonymous access, cross-tenant access, or an MFA bypass. It requires the compromised credential, the restore conditions and an authorized administrator's approval.
Evidence
- A different serial replaces the pending request.
- Confirmation accepts only organization, node and actor, then reads the current request.
- The UI displays the name and dates and submits no observed serial/version.
A bounded local probe executed the real NodeReadoptions command and domain policies with fake ports: notice(B), pending() observes B, notice(A), confirm(node). Assertions passed: B remained the observed snapshot, while A was adopted and audited. All values were synthetic. This establishes the missing confirmation binding; it did not exercise TLS, MFA, a real database, or a live gateway.
SPEC 3.1 explicitly retains the latest certificate. This is a security refinement of that design, not a claim that the implementation violates its literal wording.
Proposed correction and acceptance criteria
Carry an expected serial or immutable request version from selection through confirmation; compare it atomically with adoption and reject changes with 409. Show a certificate identifier suitable for verification against the intended server.
- B reviewed, A replaces it, confirmation of B returns 409 without adopting either certificate.
- An unchanged reviewed certificate succeeds with existing authorization and reauthentication checks.
- A concurrent replacement cannot pass between validation and adoption.
- UI retains the reviewed identity throughout confirmation and requires fresh review after conflict.
- Known revoked/expired serials remain refused; audit records identify the certificate actually approved.
Publication check (2026-11-27): main advanced to 817f6ac3b00fdb0e81331e519abc5668a1560aee through #539. The affected production paths cited above are unchanged; the source links retain the audited revision.
Activity
fix(web): an earlier re-adoption answer leaves a newer review's form …