Vulnerabilities > CVE-2022-39395 - Improper Privilege Management vulnerability in Go-Vela UI
Summary
Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. In Vela Server and Vela Worker prior to version 0.16.0 and Vela UI prior to version 0.17.0, some default configurations for Vela allow exploitation and container breakouts. Users should upgrade to Server 0.16.0, Worker 0.16.0, and UI 0.17.0 to fix the issue. After upgrading, Vela administrators will need to explicitly change the default settings to configure Vela as desired. Some of the fixes will interrupt existing workflows and will require Vela administrators to modify default settings. However, not applying the patch (or workarounds) will continue existing risk exposure. Some workarounds are available. Vela administrators can adjust the worker's `VELA_RUNTIME_PRIVILEGED_IMAGES` setting to be explicitly empty, leverage the `VELA_REPO_ALLOWLIST` setting on the server component to restrict access to a list of repositories that are allowed to be enabled, and/or audit enabled repositories and disable pull_requests if they are not needed.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Restful Privilege Elevation Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
References
- https://go-vela.github.io/docs/installation/server/reference/#vela_repo_allowlist
- https://github.com/go-vela/worker/releases/tag/v0.16.0
- https://github.com/go-vela/server/commit/05558ee99d70f7d6f83bed7c8f78ac0b35fa26f4
- https://docs.docker.com/engine/security/#docker-daemon-attack-surface
- https://github.com/go-vela/ui/releases/tag/v0.17.0
- https://github.com/go-vela/server/security/advisories/GHSA-5m7g-pj8w-7593
- https://go-vela.github.io/docs/installation/worker/reference/#vela_runtime_privileged_images
- https://github.com/go-vela/ui/security/advisories/GHSA-xf39-98m2-889v
- https://github.com/go-vela/worker/security/advisories/GHSA-2w78-ffv6-p46w
- https://github.com/go-vela/server/releases/tag/v0.16.0