3 ms·
> Every time the attacker changes the ciphertext both the MAC and the plaintext will change unpredictably. No. This system uses CBC so changes to the ciphertex
by tialaramex 6y ago
> Every time the attacker changes the ciphertext both the MAC and the plaintext will change unpredictably.
No. This system uses CBC so changes to the ciphertext have predictable consequences for some of the plaintext including the MAC.
This is why padding oracle attacks on CBC work so nicely. You smash a random byte you don't care about in block N-1 and twiddle a byte in block N. The padding oracle tells you if you got that byte "right" by the padding rules and so you can deduce what it was before you twiddled it.
- barbegal 6y ago> This system uses CBC so changes to the ciphertext have predictable consequences for some of the plaintext including the MAC. Specifically they have predictable consequences for the next block so if the MAC is at the end of the Nth block you can change the ciphertext of block N-1. You still have the problem that this changes both the plaintext and the MAC so the attack would still fail. Or so I thought until I read through https://gist.github.com/defuse/0822a9c6d70ab4939c95 https://gist.github.com/defuse/0822a9c6d70ab4939c95 to understand the attack. The MAC here fills at least a whole block allowing independent changes to the MAC and the plaintext.