Protect against potential replay attacks

See #3753.
This commit is contained in:
Lonami Exo
2022-05-18 12:24:28 +02:00
parent 09b9cd8193
commit 184984ac51
2 changed files with 63 additions and 0 deletions

View File

@@ -505,6 +505,8 @@ class MTProtoSender:
try:
message = self._state.decrypt_message_data(body)
if message is None:
continue # this message is to be ignored
except TypeNotFoundError as e:
# Received object which we don't know how to deserialize
self._log.info('Type %08x not found, remaining data %r',