中危 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
运行在以下环境
系统 alma_linux_8 thunderbird * Up to
(excluding)
102.4.0-1.el8_6.alma.plus.1
运行在以下环境
系统 alma_linux_9 thunderbird * Up to
(excluding)
102.4.0-1.el9_0.alma.plus
运行在以下环境
系统 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_3.19 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
运行在以下环境
系统 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 thunderbird * Up to
(excluding)
102.4.0-1.0.1.el7_9
运行在以下环境
系统 oracle_8 thunderbird * Up to
(excluding)
102.4.0-1.0.1.el8_6
运行在以下环境
系统 oracle_9 thunderbird * 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
运行在以下环境
系统 rocky_linux_8 thunderbird * Up to
(excluding)
102.4.0-1.el8_6
运行在以下环境
系统 ubuntu_18.04 thunderbird * Up to
(excluding)
102.4.2+build2-0ubuntu0.18.04.1
运行在以下环境
系统 ubuntu_20.04 thunderbird * Up to
(excluding)
102.4.2+build2-0ubuntu0.20.04.1
运行在以下环境
系统 ubuntu_22.04 thunderbird * Up to
(excluding)
102.4.2+build2-0ubuntu0.22.04.1
运行在以下环境
系统 ubuntu_22.10 thunderbird * Up to
(excluding)
102.4.2+build2-0ubuntu0.22.10.1
阿里云评分
6.3
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-287 认证机制不恰当
CWE-322 未进行实体认证的密钥交换
阿里云安全产品覆盖情况