Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-qcvh-p9jq-wp8v

Опубликовано: 15 окт. 2024
Источник: github
Github: Прошло ревью
CVSS4: 8.7
CVSS3: 0

Описание

Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room

Impact

matrix-react-sdk before 3.102.0 allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite.

Patches

matrix-react-sdk 3.102.0 disables sharing message keys on invite by removing calls to the vulnerable functionality.

Workarounds

None.

References

The vulnerability in matrix-react-sdk is caused by calling MatrixClient.sendSharedHistoryKeys in matrix-js-sdk, which is inherently vulnerable to this sort of attack. This matrix-js-sdk vulnerability is tracked as CVE-2024-47080 / GHSA-4jf8-g8wp-cx7c. Given that this functionality is not specific to sharing message keys on invite, is optional, has to be explicitly called by the caller and has been independently patched in matrix-react-sdk by removing the offending calls, we believe it is proper to treat the matrix-react-sdk vulnerability as a separate one, with its own advisory and CVE.

The matrix-org/matrix-react-sdk repository has recently been archived and the project was moved to element-hq/matrix-react-sdk. Given that this happened after the first patched release, no releases of the project on element-hq/matrix-react-sdk were ever vulnerable to this vulnerability.

Patching pull request: https://github.com/matrix-org/matrix-react-sdk/pull/12618.

For more information

If you have any questions or comments about this advisory, please email us at security at security at matrix.org.

Пакеты

Наименование

matrix-react-sdk

npm
Затронутые версииВерсия исправления

>= 3.18.0, < 3.102.0

3.102.0

EPSS

Процентиль: 59%
0.00387
Низкий

8.7 High

CVSS4

0 Low

CVSS3

Дефекты

CWE-200

Связанные уязвимости

nvd
больше 1 года назад

matrix-react-sdk is react-based software development kit for inserting a Matrix chat/VOIP client into a web page. Starting in version 3.18.0 and before 3.102.0, matrix-react-sdk allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite. Version 3.102.0 fixes this issue by disabling sharing message keys on invite by removing calls to the vulnerable functionality. No known workarounds are available.

CVSS3: 5.3
fstec
больше 1 года назад

Уязвимость набора средств разработки для JavaScript и TypeScript matrix-react-sdk, связанная с недостаточной защитой служебных данных, позволяющая нарушителю получить несанкционированный доступ к защищаемой информации

EPSS

Процентиль: 59%
0.00387
Низкий

8.7 High

CVSS4

0 Low

CVSS3

Дефекты

CWE-200