中危 matrix javascript_sdk 认证机制不恰当
CVE编号
CVE-2022-39250利用情况
暂无补丁情况
官方补丁披露时间
2022-09-29漏洞描述
Matrix JavaScript SDK is the Matrix Client-Server software development kit (SDK) for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver could interfere with the verification flow between two users, injecting its own cross-signing user identity in place of one of the users’ identities. This would lead to the other device trusting/verifying the user identity under the control of the homeserver instead of the intended one. The vulnerability is a bug in the matrix-js-sdk, caused by checking and signing user identities and devices in two separate steps, and inadequately fixing the keys to be signed between those steps. Even though the attack is partly made possible due to the design decision of treating cross-signing user identities as Matrix devices on the server side (with their device ID set to the public part of the user identity key), no other examined implementations were vulnerable. Starting with version 19.7.0, the matrix-js-sdk has been modified to double check that the key signed is the one that was verified instead of just referencing the key by ID. An additional check has been made to report an error when one of the device ID matches a cross-signing key. As this attack requires coordination between a malicious homeserver and an attacker, those who trust their homeservers do not need a particular workaround.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | matrix | javascript_sdk | * | Up to (excluding) 19.7.0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.16 | riot-web | * | Up to (excluding) 1.11.7-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.17 | riot-web | * | Up to (excluding) 1.11.7-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.18 | element-web | * | Up to (excluding) 1.11.7-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_edge | element-web | * | Up to (excluding) 1.11.7-r0 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | thunderbird | * | Up to (excluding) 102.4.0-1.amzn2.0.1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_7 | thunderbird | * | Up to (excluding) 102.4.0-1.0.1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_8 | thunderbird | * | Up to (excluding) 102.4.0-1.0.1 | |||||
运行在以下环境 | |||||||||
系统 | centos_7 | thunderbird | * | Up to (excluding) 102.4.0-1.el7_9 | |||||
运行在以下环境 | |||||||||
系统 | centos_8 | thunderbird | * | Up to (excluding) 102.4.0-1.el8_6 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | node-matrix-js-sdk | * | Up to (including) 0.9.2-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | node-matrix-js-sdk | * | Up to (including) 9.3.0+~cs9.9.16-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | node-matrix-js-sdk | * | Up to (including) 9.11.0+~cs9.9.16-2 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | MozillaThunderbird | * | Up to (excluding) 102.4.0-150200.8.85.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | MozillaThunderbird | * | Up to (excluding) 102.4.0-150200.8.85.1 | |||||
运行在以下环境 | |||||||||
系统 | oracle_7 | oraclelinux-release | * | Up to (excluding) 102.4.0-1.0.1.el7_9 | |||||
运行在以下环境 | |||||||||
系统 | oracle_8 | oraclelinux-release | * | Up to (excluding) 102.4.0-1.0.1.el8_6 | |||||
运行在以下环境 | |||||||||
系统 | oracle_9 | oraclelinux-release | * | Up to (excluding) 102.4.0-1.el9_0 | |||||
运行在以下环境 | |||||||||
系统 | redhat_7 | thunderbird | * | Up to (excluding) 102.4.0-1.el7_9 | |||||
运行在以下环境 | |||||||||
系统 | redhat_8 | thunderbird | * | Up to (excluding) 102.4.0-1.el8_6 | |||||
运行在以下环境 | |||||||||
系统 | redhat_9 | thunderbird | * | Up to (excluding) 102.4.0-1.el9_0 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | thunderbird | * | Up to (excluding) 1:102.4.2+build2-0ubuntu0.18.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | thunderbird | * | Up to (excluding) 1:102.4.2+build2-0ubuntu0.20.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.04 | thunderbird | * | Up to (excluding) 1:102.4.2+build2-0ubuntu0.22.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.10 | thunderbird | * | Up to (excluding) 1:102.4.2+build2-0ubuntu0.22.10.1 | |||||
- 攻击路径 本地
- 攻击复杂度 复杂
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-287 | 认证机制不恰当 |
CWE-322 | 未进行实体认证的密钥交换 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论