github.com/rancher/steve
Affected
- introduced
0, fixed0.0.0-20241029132712-2175e090fe4b(semver)
Fixed versions
0.0.0-20241029132712-2175e090fe4b
Fix
- Fixed version
0.0.0-20241029132712-2175e090fe4bgo get github.com/rancher/[email protected]
Advisory
Also known as: CVE-2024-52280, GO-2024-3281
github.com/rancher/steve's users can issue watch commands for arbitrary resources
Impact
A vulnerability has been discovered in Steve API (Kubernetes API Translator) in which users can watch resources they are not allowed to access, when they have at least some generic permissions on the type. For example, a user who can get a single secret in a single namespace can get all secrets in every namespace.
During a watch request for a single ID, the following occurs:
This allows any requester to see the contents of any object such as secret keys, signing certificates, API tokens.
Please consult the associated MITRE ATT&CK - Technique - Valid Accounts and MITRE ATT&CK - Technique - Container and Resource Discovery for further information about this category of attack.
Patches
To address this issue, the fix introduces a change in the behavior of the Steve API.
When issuing a watch request with an ID specified, the requester's permissions are now correctly honoured. This will deny events for objects the requester cannot actually access. Previously these events were returned unconditionally, allowing any requester to see the contents of any object.
Patched versions include the following commits:
| Branch | Commit |
| -------- | ------- |
| main | https://github.com/rancher/steve/commit/2175e090fe4b1e603a54e1cdc5148a2b1c11b4d9 |
| release/v2.9 | https://github.com/rancher/steve/commit/6e30359c652333a49e229b2791c9b403d5ef81a9 |
| release/v2.8 | https://github.com/rancher/steve/commit/c744f0b17b88ff5e2fcabc60841174d878ddc88e |
Workarounds
There are no workarounds for this issue. Users are recommended to upgrade, as soon as possible, to a version of Steve API/Rancher Manager which contains the fixes.
References
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
0, fixed 0.0.0-20241029132712-2175e090fe4b (semver)0.0.0-20241029132712-2175e090fe4b
0.0.0-20241029132712-2175e090fe4bgo get github.com/rancher/[email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0