Vulnérabilité dans github.com/rancher/rancher (CVE-2022-31247)
Résumé
Vulnérabilité dans github.com/rancher/rancher (CVE-2022-31247). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via owner. Atténuation : mise à jour vers 2.6.7 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
An issue was discovered in Rancher versions up to and including 2.5.15 and 2.6.6 where a flaw with authorization logic allows privilege escalation through cluster role template binding (CRTB) and project role template binding (PRTB). This issue does not affect the local cluster, it affects only downstream clusters.
The vulnerability can be exploited by any user who has permissions to create/edit cluster role template bindings or project role template bindings (such as cluster-owner, manage cluster members, project-owner and manage project members) to gain owner permission in another project in the same cluster or in another project on a different downstream cluster.
-
The user must have
kubectlaccess in the local cluster to exploit this scenario. -
This can only be abused to gain
cluster-ownerpermission on a different downstream cluster if the user is alreadycluster-owneron at least one downstream cluster. -
Example of a modified CRTB (note: the
clusterNamepoints to the cluster ID of the cluster that the privileges will be escalated andnamespacepoints to the current cluster ID that the user has permissions):
kubectl edit clusterroletemplatebindings crtb- -n c-
---
apiVersion: management.cattle.io/v3
clusterName:
kind: ClusterRoleTemplateBinding
metadata:
annotations:
finalizers:
-
generateName: crtb-
labels:
cattle.io/creator: norman
name: crtb-
namespace: c-
roleTemplateName: cluster-own…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2022-31247 a été découverte dans github.com/rancher/rancher.
Des attaquants peuvent cibler un point d'entrée spécifique comme owner à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système.
Action : mettez à jour github.com/rancher/rancher vers 2.6.7 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/rancher/rancher CVE-2022-31247 » sur le site de l'éditeur.
CVE-2022-31247 (github.com/rancher/rancher) — CWE-285
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : owner / kubectl / clusterName / namespace
Correctif : 2.6.7 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-285) affecte github.com/rancher/rancher. Les attaquants atteignent le code vulnérable via owner.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/rancher/rancher. Surface d'attaque : owner / kubectl / clusterName / namespace.
Gravité : ?. L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 2.6.7.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/rancher/rancher' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/rancher/rancherを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/rancher/rancher to 2.6.7ステージング環境で 2.6.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web bugzilla.suse.com