RWC 2022: Four Attacks and a Proof for Telegram

Today at the conference Real World Crypto 2022, the talk “Four Attacks and a Proof For Telegram” was presented by Igors Stepanovs.

This talk presents four different kinds of attack on symmetric cryptography inside MTProto  2.0 protocol, Telegram’s equivalent of the TLS record protocol.

Telegram  is a chat platform which was perceived to provide more security than its competitors such as WhatsApp, Snapchat, FB Messenger etc.

Most important advantages of using Telegram are that it supports of public and private group chats for up to 200K people, and users can use pseudonym, not revealing mobile number to others, which is not supported in Signal and WhatsApp. Although people are aware of such fascinating features, the security that Telegram offers is not well understood. In other words, it is time to see that Telegram really provides enough security that users want.

Telegram uses its MTProto “record layer” – offering protection based on symmetric cryptographic techniques – for two different types of chats; cloud chats (client-server) and secret chats ((one-on-one chats).  For cloud chats, messages are encrypted and authenticated using MTProto, whereas Secret Chats has another layer of MTProto; end-to-end encryption.

This talk mainly focuses on the security of Cloud Chats which has not been studied so far.

In this work, they proposed four different attacks:

  1. Attack against IND-CPA security 
  2. Message reordering attack 
  3. Timing side-channel attacks against clients 
  4. Timing side0channel attack against servers

The first one is fully theoretical, and it works due to the same blocks of two different messages sent within a certain time in MTProto, Hence an adversary can break stateful IND-CPA security. In the second attack, an adversary can swap messages sent by one party so that they are processed in the reverse (wrong) order by the receiving party. Therefore an adversary can obtain additional information at  the end of the protocol. It was discovered that implementation of Cloud Chat cannot fully provide protection against such attack.

For the third and fourth attack, they exploit plaintext recovery attack and an attacker-in-the-middle (MitM) attack against the implementation of the key exchange protocol on Telegram’s servers.

In other words, the outcome of the last two side-channel attacks  highlights the vulnerability/ weaknesses in its key exchange.

For detailed information about this work, we refer their original paper which will be also presented in IEEE S&P 2022.