We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39d806 commit efd082cCopy full SHA for efd082c
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt
@@ -1392,6 +1392,9 @@ internal class DefaultCryptoService @Inject constructor(
1392
senderKey = sessionInfoPair.second,
1393
sharedHistory = true
1394
)
1395
+ }?.filter { inboundGroupSession ->
1396
+ // Prevent injecting a forged encrypted message and using session_id/sender_key of another room.
1397
+ inboundGroupSession.roomId == roomId
1398
}?.forEach { inboundGroupSession ->
1399
// Share the sharable session to userId with deviceId
1400
val exportedKeys = inboundGroupSession.exportKeys(sharedHistory = true)
0 commit comments