Écriture hors limites dans github.com/tendermint/tendermint (CVE-2020-5303)
Résumé
écriture hors limites dans github.com/tendermint/tendermint (CVE-2020-5303). Risque d'opérations non autorisées ou de divulgation. Exploitable via activeID. Atténuation : mise à jour vers 0.32.10 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Description
Denial of Service 1
Tendermint 0.33.2 and earlier does not limit the number of P2P connection requests. For each p2p connection, Tendermint allocates XXX bytes. Even though this memory is garbage collected once the connection is terminated (due to duplicate IP or reaching a maximum number of inbound peers), temporary memory spikes can lead to OOM (Out-Of-Memory) exceptions.
Tendermint 0.33.3 (and 0.32.10) limits the total number of P2P incoming connection requests to to p2p.max_num_inbound_peers + len(p2p.unconditional_peer_ids).
Notes:
- Tendermint does not rate limit P2P connection requests per IP (an attacker can saturate all the inbound slots);
- Tendermint does not rate limit HTTP(S) requests. If you expose any RPC endpoints to the public, please make sure to put in place some protection (https://www.nginx.com/blog/rate-limiting-nginx/). We may implement this in the future (https://github.com/tendermint/tendermint/issues/1696).
Denial of Service 2
Tendermint 0.33.2 and earlier does not reclaim activeID of a peer after it's removed in Mempool reactor. This does not happen all the time. It only happens when a connection fails (for any reason) before the Peer is created and added to all reactors. RemovePeer is therefore called before AddPeer, which leads to always growing memory (activeIDs map). The activeIDs map has a maximum size of 65535 and the node will panic if this map reaches the maximum. An attacker can create a lot o…
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-5303 a été découverte dans github.com/tendermint/tendermint.
Des attaquants peuvent cibler un point d'entrée spécifique comme activeID à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/tendermint/tendermint vers 0.32.10 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/tendermint/tendermint CVE-2020-5303 » sur le site de l'éditeur.
CVE-2020-5303 (github.com/tendermint/tendermint) — CWE-787
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : activeID / Mempool / Peer / RemovePeer
Correctif : 0.32.10 — 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 écriture hors limites (CWE-787) affecte github.com/tendermint/tendermint. Les attaquants atteignent le code vulnérable via activeID sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/tendermint/tendermint. Surface d'attaque : activeID / Mempool / Peer / RemovePeer.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.32.10.
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/tendermint/tendermint' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/tendermint/tendermintを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/tendermint/tendermint to 0.32.10ステージング環境で 0.32.10 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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 github.com
- web hackerone.com
- web github.com