6.2medium
User with permission to write actions can impersonate another user when auth token is configured in environment variable
- Severity
- 6.2medium CVSS:3.1 by GitHub
- Published
- Last changed
- Also known as
- GO-2023-2397
Description
Impact
When lakeFS is configured with ALL of the following:
- Configuration option
auth.encrypt.secret_keypassed through environment variable - Actions enabled via configuration option
actions.enabled(default enabled)
then a user who can configure an action can impersonate any other user.
Patches
Has the problem been patched? What versions should users upgrade to?
Workarounds
ANY ONE of these is sufficient to prevent the issue:
-
Do not pass
auth.encrypt.secret_keythrough an environment variable.For instance, Kubernetes users can generate the entire configuration as a secret and mount that. This is described here.
-
Disable actions.
-
Limit users allowed to configure actions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/treeverse/lakefs (Go) | before 1.3.1 | GitHub Advisory Database, Go Vulnerability Database |
What each source says
GitHub Advisory Database
Impact
When lakeFS is configured with ALL of the following:
- Configuration option
auth.encrypt.secret_keypassed through environment variable - Actions enabled via configuration option
actions.enabled(default enabled)
then a user who can configure an action can impersonate any other user.
Patches
Has the problem been patched? What versions should users upgrade to?
Workarounds
ANY ONE of these is sufficient to prevent the issue:
-
Do not pass
auth.encrypt.secret_keythrough an environment variable.For instance, Kubernetes users can generate the entire configuration as a secret and mount that. This is described here.
-
Disable actions.
-
Limit users allowed to configure actions.
Go Vulnerability Database
User with permission to write actions can impersonate another user when auth token is configured in environment variable in github.com/treeverse/lakefs
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-26hr-q2wp-rvc5 changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-2397 changed 2026-03-03 | CC-BY-4.0 |