CBC
Cheat sheet · https://pcornel.dk/topic.php?topic=4693
Answer
CBC (Cipher Block Chaining) XORs each plaintext block with the previous ciphertext block. It needs a random IV and separate integrity protection and has been hit by padding-oracle attacks, so GCM is preferred.
Remember
- CBC needs a random, unpredictable IV.
- It needs a separate MAC (encrypt-then-MAC).
- Padding oracle attacks have broken many CBC uses.
First checks
nmap --script ssl-enum-ciphers -p 443 <host> | grep CBC— CBC suites- Encrypt-then-MAC/HMAC present — integrity
- Padding oracle error handling — uniform errors
Verify in this order
IV + plaintext blocks chained → ciphertext (+ MAC)
Where it usually breaks
First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4693