Disclosing E2EE vulnerability in multiple Matrix clients
An implementation bug in several Matrix clients and SDKs allowed a compromised account to impersonate a device and request encryption keys for previously sent messages, potentially disclosing those keys to the attacker. Exploiting it required control over the recipient's account or homeserver.
matrix.org
Published on matrix.org
Today we are disclosing a critical security issue affecting multiple Matrix clients and libraries including Element (Web/Desktop/Android), FluffyChat, Nheko, Cinny, and SchildiChat. Element on iOS is not affected.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the key-sharing implementation did not sufficiently verify the identity of the device requesting the keys, allowing a compromised account to impersonate a device.
Impact
An attacker who compromised a recipient's account or homeserver could obtain decryption keys for messages previously sent by vulnerable clients, but only if they could impersonate a device; the attack would break an existing login or show an untrusted device warning.
What the attacker needed
Control over recipient's account or homeserver; victim uses a vulnerable client; attacker impersonates a device
The fix
The affected clients and SDKs were patched; users should upgrade, and if unable to upgrade, keep vulnerable clients offline until updated.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Matrix is a chat system with end-to-end encryption, meaning only the sender and recipient can read messages. To help new devices read old messages, clients can share decryption keys with other devices of the same user. This bug let an attacker who controlled a user's account pretend to be one of that user's devices and ask for those keys, so they could read past messages.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.