News for hackers. Stuff that matters.
Re:Why is unauthenticated encryption insecure? by cybergibbons on Sunday September 20, 2020 @02:39PM (#24536199)
I considered using a padding oracle attack in the post, but it's aimed at a very basic level of understanding. I find padding oracles are much harder to describe to newcomers.

Also, the XOR malleability issue is present in lots of block modes of operation.

Re:Why is unauthenticated encryption insecure? by tptacek on Sunday September 20, 2020 @02:40PM (#24536211)
You can read downthread commenters on this post taking away the message that when you select cryptographic building blocks, you need to determine "if you care about" message tampering. Which is, of course, not the message people need to hear.

Another note would be to point out that the limited attack you presented is a lot simpler to understand and execute in CTR mode (and has the benefit also of being more common in practice).

Re:Why is unauthenticated encryption insecure? by cybergibbons on Sunday September 20, 2020 @02:58PM (#24536385)
I've added a section on padding oracle attacks towards the bottom.

I don't think there's a significant different in ease of understanding between most of the modes. I used CBC as it's one of the most common and familiar modes, and because it's where I have seen this issue many times. I don't see CTR used in the wild very often.

I also tend to use CBC for other demos as well, so it makes things consistent.

Re:Why is unauthenticated encryption insecure? by tptacek on Sunday September 20, 2020 @03:11PM (#24536486)
For the benefit of the thread: the variant of the CBC bitflipping attack that applies to the more common CTR stream cipher mode is: you simply XOR in whatever data you want, directly to the bytes you want to alter, and that's the end of the attack.
Re:Why is unauthenticated encryption insecure? by cybergibbons on Sunday September 20, 2020 @03:15PM (#24536536)
Is CTR more common?
Re:Why is unauthenticated encryption insecure? by tptacek on Sunday September 20, 2020 @03:16PM (#24536544)
It is much more common. It's also much easier to use.
Re:Why is unauthenticated encryption insecure? by wolf550e on Monday September 21, 2020 @06:05AM (#24541597)
Note that the common AEAD modes, AES-GCM and ChaCha20-Poly1305, are CTR + MAC. The most common style of MAC is Carter Wegman MAC, the second most common is CCM and EAX and the like, after that HMAC. Nothing new uses CBC or CFB or OFB or any of those.