Описание
Incus has a project restriction bypass in instance copy across projects
Summary
Missing authorization checks exist for instance copying where an attacker knowing the name of a project that they don't have access to and the name of an instance in that project can copy the instance to a new project. This issue could allow an attacker to access secrets in instances they are not authorized to access.
Details
cmd/incusd/instances.go authorizes POST /1.0/instances against the target project. In the copy path, cmd/incusd/instances_post.go then loads the source instance from req.Source.Project without checking whether the caller can view that source instance.
The copy must occur on the same server. However, once the copy has been done, nothing prevents a malicious actor from moving the instance to another server.
PoC
Setup
Assumes the target server is remotely accessible and a user/certificate has been added.
Exploitation
The below script was partly generated. To copy the secret instance to the default project, the following command can be used.
Wait a bit for the instance to be copied, then incus ls remote: to see the copied instance.
Impact
An attacker can copy instances they don't normally have access to, possibly leading to information disclosure.
Ссылки
- https://github.com/lxc/incus/security/advisories/GHSA-c9f5-j9c3-mhrg
- https://nvd.nist.gov/vuln/detail/CVE-2026-55622
- https://github.com/lxc/incus/pull/3542
- https://github.com/lxc/incus/commit/1e3ffc53a10950e55de62ac1e0d612be597b84eb
- https://discuss.linuxcontainers.org/t/incus-7-2-has-been-released/26879
- https://github.com/lxc/incus/releases/tag/v7.2.0
Пакеты
github.com/lxc/incus/v7/cmd/incusd
< 7.2.0
7.2.0
Связанные уязвимости
Incus is a system container and virtual machine manager. Prior to version 7.2.0, missing authorization checks exist for instance copying where an attacker knowing the name of a project that they don't have access to and the name of an instance in that project can copy the instance to a new project. This issue could allow an attacker to access secrets in instances they are not authorized to access. Version 7.2.0 patches the issue.
Incus is a system container and virtual machine manager. Prior to version 7.2.0, missing authorization checks exist for instance copying where an attacker knowing the name of a project that they don't have access to and the name of an instance in that project can copy the instance to a new project. This issue could allow an attacker to access secrets in instances they are not authorized to access. Version 7.2.0 patches the issue.
Incus is a system container and virtual machine manager. Prior to vers ...