by agl · 13y ago · 0 comments
Since CBC mode needs to pad its input, this means that the padding is outside of the authentication.
So, when decrypting, the padding has to be removed and then the MAC can be checked. But the number of blocks hashed in the MAC depends on the padding. So the attacker can setup the padding such that a valid padding means that it's removed and one less hash block is calculated. An invalid padding isn't removed and the MAC takes one more hash-block worth of time.
Thus the attacker can tell whether a padding was valid and that's sufficient to completely break TLS.