Summary
Incus exposes certificate and cluster join token secrets through the default project event stream, and may allow restricted clients to cancel certain operations without the required authorization. A client able to subscribe to operation events could capture tokens and use them to enroll an unrestricted certificate, potentially gaining full server access.
Affected context
The issue affects Incus deployments where clients can access the default project event stream or attempt to cancel operations. Sensitive certificate and cluster join token data may be present in operation events, while cancellation may skip authorization when an operation has no associated permissions. The described behavior applies to Incus versions before 7.6.0.
Exploit preconditions
- Attack surface: The default project event stream and operation cancellation interface
- Required access: A restricted client account with access to subscribe to operation events; cancellation may be possible with access to an operation UUID
- Trigger point: Subscribing to relevant operation events to observe token secrets, or requesting cancellation of an operation
- Why exploitation is possible: Secrets are exposed to restricted clients, and authorization checks may be skipped for cancellation when an operation has no associated permissions
Why this happens
The primary issue is CWE-200: Exposure of Sensitive Information to an Unauthorized Actor. Operation events disclose certificate and cluster join token secrets to clients that should not receive them. Separately, an incomplete authorization check in the cancellation path can allow an operation to be cancelled without the permissions normally required.
Potential impact
- Restricted clients may obtain certificate or cluster join tokens
- An attacker could enroll an unrestricted certificate and gain full server access
- Operations may be cancelled without the intended authorization
- Cluster availability or administrative workflows could be disrupted
General mitigation guidance
Defensive patterns include limiting sensitive event data to authorized audiences and avoiding secrets in broadly accessible event streams. Apply authorization checks consistently to every operation action, including cancellation, and default to denying requests when permissions are absent or ambiguous. Reduce the privileges of client identities and use narrowly scoped, short-lived credentials where practical.
How teams detect issues like this
Review event serialization and subscription policies for secrets or credentials exposed to restricted clients. Use static analysis and code review to trace authorization checks across operation handlers, especially branches for operations without associated permissions. Policy tests can verify that clients receive only permitted event fields and cannot cancel operations outside their authorization scope; audit logs can help identify unusual subscriptions, token use, or cancellation requests.

