Summary
Incus can allow restricted or view-only clients to read resources in the default project by requesting that project directly. If a client knows resource names, the authorization gap may expose sensitive configuration and credentials, or allow custom volume and bucket backups to be exported.
Affected context
The issue affects Incus deployments before 7.6.0 where authorization checks do not consistently restrict access to default project resources. Restricted or view-only clients may be able to request resources by name, including profiles, images, network zone peer keys, and stored credentials. Depending on the resources and available export operations, custom volume or bucket backups may also be accessible.
Exploit preconditions
- Attack surface: Incus API requests for project resources and backup exports
- Required access: A restricted or view-only client account
- Trigger point: A request that targets the default project directly
- Additional condition: The client knows the names of the resources it requests
- Why exploitation is possible: Authorization checks may fail to enforce the client's access restrictions for the requested project or resource
Why this happens
The underlying issue is an authorization check that does not adequately verify whether a client is permitted to access a resource in the requested project. This maps to CWE-863: Incorrect Authorization. Insecure patterns include relying on the requested project context without consistently checking the caller's permissions for each resource and operation.
Potential impact
- Restricted clients may read project profiles, images, or other resource metadata.
- Network zone peer keys and stored credentials could be disclosed.
- Clients may export custom volume or bucket backups and access their contents.
- Exposed backups could reveal S3 administrative keys or other sensitive data.
General mitigation guidance
Defensive approaches focus on consistent authorization at every resource boundary and operation.
- Enforce server-side permission checks for the caller, project, resource, and requested action.
- Apply the same authorization rules to reads, exports, and other indirect access paths.
- Avoid treating knowledge of a resource name or a client-supplied project identifier as proof of permission.
- Use least-privilege client roles and limit access to sensitive resources and backup operations.
- Review default-project access policies and reduce the sensitivity or availability of stored credentials where practical.
How teams detect issues like this
- Review authorization code for checks that rely on requested project context without verifying caller permissions for each resource and operation.
- Use static analysis and code review to identify API handlers where resource lookup or export occurs before authorization.
- Test API access with restricted and view-only roles across projects, including requests that explicitly target the default project.
- Monitor audit logs for denied-role clients accessing default-project resources or initiating backup exports.
- Apply policy checks that require authorization before returning resource data or starting exports.

