Advisory

GO-2024-2608

Also known as: CVE-2024-27916, GHSA-v627-69v2-xx37

Summary

Minder access control bypass in github.com/stacklok/minder

Details

A Minder user can use the endpoints to access any repository in the DB, irrespective of who owns the repo and any permissions that user may have. The DB query used checks by repo owner, repo name and provider name (which is always "github"). These query values are not distinct for the particular user, as long as the user has valid credentials and a provider, they can set the repo owner/name to any value they want and the server will return information on this repo. DeleteRepositoryByName uses the same query and a user can delete another user's repo using this technique. The GetArtifactByName endpoint also uses this DB query.

Severity

Not rated by the source.

Dates

Published
2024-03-11 20:07 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/stacklok/minder

Go · All systems

Affected

  • introduced 0, fixed 0.0.33 (semver)

Fixed versions

0.0.33

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: Go Vulnerability Database · CC BY 4.0

Sources & licences