Argo Workflows Allows Access to Archived Workflows with Fake Token in `client` mode
argoproj argo-workflows
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/argoproj/argo-workflows/v3 Go |
|
|
| github.com/argoproj/argo-workflows Go |
|
argoproj argo-workflows
| Product | Affected | Fixed in |
|---|---|---|
| github.com/argoproj/argo-workflows/v3 Go |
|
|
| github.com/argoproj/argo-workflows Go |
|
| No fix yet |
| github.com/argoproj/argo-workflows/v2 Go |
| No fix yet |
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. When using `--auth-mode=client`, Archived Workflows can be retrieved with a fake or spoofed token via the GET Workflow endpoint: `/api/v1/workflows/{namespace}/{name}` or when using `--auth-mode=sso`, all Archived Workflows can be retrieved with a valid token via the GET Workflow endpoint: `/api/v1/workflows/{namespace}/{name}`. No authentication is performed by the Server itself on `client` tokens. Authentication & authorization is instead delegated to the k8s API server. However, the Workflow Archive does not interact with k8s, and so any token that looks valid will be considered authenticated, even if it is not a k8s token or even if the token has no RBAC for Argo. To handle the lack of pass-through k8s authN/authZ, the Workflow Archive specifically does the equivalent of a `kubectl auth can-i` check for respective methods. In 3.5.7 and 3.5.8, the auth check was accidentally removed on the GET Workflow endpoint's fallback to archived workflows on these lines, allowing archived workflows to be retrieved with a fake token. This vulnerability is fixed in 3.6.2 and 3.5.13.
From the CVE record · GitHub_M
The GET Workflow endpoint can return Archived Workflows without the intended authorization check. In client auth mode, a requester can retrieve an archived workflow with a fake token; in SSO mode, a requester with a valid token can retrieve all Archived Workflows. The issue occurs when the endpoint falls back to the Workflow Archive.
Teams running Argo Workflows using github.com/argoproj/argo-workflows/v3 in the affected 3.5.7–3.5.12 or 3.6.0–3.6.1 ranges, including affected release candidates, or using the unversioned or v2 Go packages should check their deployments.