Vulnérabilité dans matrix-appservice-bridge (CVE-2021-32659)
Résumé
Vulnérabilité dans matrix-appservice-bridge (CVE-2021-32659). Des informations confidentielles peuvent être exposées. Exploitable via roomUpgradeOpts. Atténuation : mise à jour vers 2.6.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
If a bridge has room upgrade handling turned on in the configuration (the roomUpgradeOpts key when instantiating a new Bridge instance.), any m.room.tombstone event it encounters will be used to unbridge the current room and bridge into the target room. However, the target room m.room.create event is not checked to verify if the predecessor field contains the previous room. This means that any mailcious admin of a bridged room can repoint the traffic to a different room without the new room being aware.
Patches
Versions 2.6.1 and greater are patched.
Workarounds
Disabling the automatic room upgrade handling can be done by removing the roomUpgradeOpts key from the Bridge class options.
References
The issue is patched by https://github.com/matrix-org/matrix-appservice-bridge/pull/330
For more information]
If you have any questions or comments about this advisory, email us at security@matrix.org.
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-2021-32659 a été découverte dans matrix-appservice-bridge.
Des attaquants peuvent cibler un point d'entrée spécifique comme roomUpgradeOpts à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour matrix-appservice-bridge vers 2.6.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « matrix-appservice-bridge CVE-2021-32659 » sur le site de l'éditeur.
CVE-2021-32659 (matrix-appservice-bridge) — CWE-306
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : roomUpgradeOpts / Bridge / m.room.tombstone / m.room.create
Correctif : 2.6.1 — appliquer immédiatement
Contournement : Disabling the automatic room upgrade handling can be done by removing the roomUpgradeOpts key from the Bridge class options.
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-306) affecte matrix-appservice-bridge. Les attaquants atteignent le code vulnérable via roomUpgradeOpts.
Consultez l'avis de l'éditeur pour les versions affectées de matrix-appservice-bridge. Surface d'attaque : roomUpgradeOpts / Bridge / m.room.tombstone / m.room.create.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 2.6.1.
Contournement : Disabling the automatic room upgrade handling can be done by removing the roomUpgradeOpts key from the Bridge class options.
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 'matrix-appservice-bridge' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
matrix-appservice-bridgeを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Disabling the automatic room upgrade handling can be done by removing the `roomUpgradeOpts` key from the `Bridge` class options.パッチが適用されるまでの応急処置として、Disabling the automatic room upgrade handling can be done by removing the
roomUpgradeOptskey from theBridgeclass options. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade matrix-appservice-bridge to 2.6.1ステージング環境で 2.6.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- web github.com
- web github.com
- web github.com
- web github.com