Local Incus UI web server vulnerable to nuthentication bypass
lxc incus
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/incus/v6/cmd/incus Go |
|
|
| github.com/lxc/incus Go |
| No fix yet |
| github.com/lxc/incus/v6 Go |
|
lxc incus
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/incus/v6/cmd/incus Go |
|
|
| github.com/lxc/incus Go |
| No fix yet |
| github.com/lxc/incus/v6 Go |
|
|
Incus is a system container and virtual machine manager. Prior to version 6.23.0, the web server spawned by `incus webui` incorrectly validates the authentication token such that an invalid value will be accepted. `incus webui` runs a local web server on a random localhost port. For authentication, it provides the user with a URL containing an authentication token. When accessed with that token, Incus creates a cookie persisting that token without needing to include it in subsequent HTTP requests. While the Incus client correctly validates the value of the cookie, it does not correctly validate the token when passed int the URL. This allows for an attacker able to locate and talk to the temporary web server on localhost to have as much access to Incus as the user who ran `incus webui`. This can lead to privilege escalation by another local user or an access to the user's Incus instances and possibly system resources by a remote attack able to trick the local user into interacting with the Incus UI web server. Version 6.23.0 patches the issue.
From the CVE record · GitHub_M
Before 6.23.0, the local web server started by `incus webui` accepts an invalid authentication token in a URL. An attacker who can reach that temporary localhost server can gain the access of the user who started it, potentially allowing another local user to escalate privileges. A remote attacker may also gain access to the user's Incus instances and possibly system resources by tricking the user into interacting with the UI server.
Check installations of `github.com/lxc/incus/v6/cmd/incus` or `github.com/lxc/incus/v6` before 6.23.0, and users of `github.com/lxc/incus`, for which no fixed version is listed.