Advisory

GHSA-26hr-q2wp-rvc5

Also known as: GO-2023-2397

Summary

User with permission to write actions can impersonate another user when auth token is configured in environment variable

Details

Impact

When lakeFS is configured with ALL of the following:

  • Configuration option auth.encrypt.secret_key passed 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_key through 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-12 00:58 UTC
Modified
2024-08-21 14:57 UTC

Affected packages and fixes

github.com/treeverse/lakefs

Go · All systems

Affected

  • introduced 0, fixed 1.3.1 (semver)

Fixed versions

1.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences