Vulnérabilité dans github.com/google/go-tpm (CVE-2020-8918)
Résumé
Vulnérabilité dans github.com/google/go-tpm (CVE-2020-8918). Des informations confidentielles peuvent être exposées. Exploitable via usageAuth. Atténuation : mise à jour vers 0.3.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
TPM 2.0 users are unaffected by this issue.
An adversary eavesdropping on the TPM 1.2 transport path can calculate usageAuth for a key created with CreateWrapKey, even though this value is encrypted as part of the TPM 1.2 command protocol.
The TPM 1.2 CreateWrapKey command accepts two secrets: usageAuth and migrationAuth. The ADIP protocol (TPM 1.2 specification, part 1, section 13.4) calls for these values to be encrypted with two different XOR keys. Due to a bug in go-tpm prior to version 0.3.0, both usageAuth and migrationAuth are encrypted with the same XOR keystream. This allows an adversary to XOR encUsageAuth and encMigrationAuth together to calculate usageAuth ^ encMigrationAuth. Since migrationAuth is moot for all keys created with go-tpm's CreateWrapKey (since all keys created with this function are marked non-migratable), an adversary may guess or know (from code/binary inspection) that migrationAuth is all 0x00 bytes or some other fixed value. Such an adversary can then calculate usageAuth and use this value later to improperly use the created key, unbeknownst to the creator of the key.
Patches
Fixed in go-tpm version 0.3.0.
Workarounds
- TPM 2.0 users: No workaround needed. This issue only affects TPM 1.2 users.
- TPM 1.2 users: Call CreateWrapKey with a random 20-byte value for
migrationAuth, even th…
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-2020-8918 a été découverte dans github.com/google/go-tpm.
Des attaquants peuvent cibler un point d'entrée spécifique comme usageAuth à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour github.com/google/go-tpm vers 0.3.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/google/go-tpm CVE-2020-8918 » sur le site de l'éditeur.
CVE-2020-8918 (github.com/google/go-tpm) — CWE-665
Vecteur d'attaque : local / sans interaction utilisateur
Surface d'attaque : usageAuth / migrationAuth / encUsageAuth / encMigrationAuth
Correctif : 0.3.0 — 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-665) affecte github.com/google/go-tpm. Les attaquants atteignent le code vulnérable via usageAuth.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/google/go-tpm. Surface d'attaque : usageAuth / migrationAuth / encUsageAuth / encMigrationAuth.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 0.3.0.
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/google/go-tpm' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/google/go-tpmを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/google/go-tpm to 0.3.0ステージング環境で 0.3.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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 github.com
- web github.com
- web pkg.go.dev