Lucene search

K
githubGitHub Advisory DatabaseGHSA-W4PR-4VJG-HFFH
HistorySep 30, 2022 - 10:56 p.m.

When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder

2022-09-3022:56:17
CWE-287
CWE-322
GitHub Advisory Database
github.com
8
matrix-nio
room keys
validity check
malicious homeserver
impersonation attack
security advisory

8.6 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

0.001 Low

EPSS

Percentile

19.6%

When matrix-nio before 0.20 requests a room key from our devices, it correctly accepts key forwards only if they are a response to a previous request. However, it doesn’t check that the device that responded matches the device the key was requested from.

This allows a malicious homeserver to insert room keys of questionable validity into the key store in some situations, potentially assisting in an impersonation attack.

For more information

If you have any questions or comments about this advisory, e-mail us at [email protected].

Affected configurations

Vulners
Node
matrixmatrix-rust-sdkRange<0.20
CPENameOperatorVersion
matrix-niolt0.20

8.6 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

0.001 Low

EPSS

Percentile

19.6%