Re: security risk of IV in plaintext CBC mode



On Feb 12, 2:14 pm, rossum <rossu...@xxxxxxxxxxxx> wrote:
If an attacker can change the IV in transit then she can affect the
decryption of the first cyphertext block. How important is an
uncorrupted decryption of the first block of plaintext to you?

Using a MAC to authenticate the message would detect the corrupted
first block.

Even if the IV is not exposed, the attacker can still tamper.
Obviously if the IV is exposed in the clear, it is the easiest to
tamper in a meaningful way, but you still want some integrity even if
the IV is not exposed.

Flipping a bit in a ciphertext block is going to destroy that
plaintext block and flip the bit in the next plaintext block. Bit
flipping can be very powerful, and I don't think "the block is
garbled" counts as integrity checking.

You should always MAC and not rely on CBC to provide integrity.

Best,
Matthew Fanto





.



Relevant Pages

  • Re: SOBER-128 draft rfc
    ... because we extensively analysed the MAC ... function in combination with encryption. ... reason that plaintext was input to the MAC ... after all, we were designing a cipher, ...
    (sci.crypt)
  • Re: CBC questions
    ... >> point was that a MAC usually cannot be safely omitted. ... Even if we assume that authentication normally is ... Simply messing up the first block with random ... and nothing you do to the IV will fix it. ...
    (sci.crypt)
  • Re: HMAC issues
    ... MAC, is that right? ... yes i am trying to use a the HMAC function to MAC the plaintext and then ... are you MAC-ing the plaintext or the ciphertext? ... MACing the plaintext, encrypting, and then MACing the ciphertext, which i ...
    (sci.crypt)
  • Re: CBC questions
    ... > point was that a MAC usually cannot be safely omitted. ... Even if we assume that authentication normally is ... by changing the first block *systematically*. ... The first-block CBC MITM problem is caused at the ...
    (sci.crypt)
  • Re: Need secure block cipher for 96 bits of block size
    ... the last 32 bits of the encrypted first block, and append the other 32 bits ... the first block to give the overall 96 bits of ciphertext. ... then the first 32 bits of the ciphertext will match. ... plaintext space), this can leak information to an adversary. ...
    (sci.crypt)