In tun Group di Esperts
2 files available
Description
Unfortunately it is not so easy to communicate with a person who speaks only in Friulan language.
Solution
Analysis
It is a communication with an expert that can only understand messages encrypted with the IGE mode of operation. IGE block cipher mode became famous after being used in Telegram.
Encryption and Decryption are shown in the following image
Exploit
The vulnerability is given by a common padding oracle. With respect to the well-known CBC padding oracle it requires to:
- start the attack from the first block
- modify the byte keeping in mind the effect given by the application of
- modify
What happens is that it is possible to decrypt the considered block by considering the output from the padding oracle with:
- The original initialisation vectors while decrypting the first block
- the previous plaintext and ciphertext block as initialisation vectors for subsequent blocks.
Starting from the first block, one plaintext block per step can be correctly decrypted. It means that at the beginning , and must be used to find .
To find the second block, and . Then is found from .
At the -th step, , and is retrieved from .
Proceeding in this way all the blocks are retrieved.
Code
Here is the solver code.