Reconnaissance and Enumeration
A tester compares ciphertexts returned by a client's public API and sees that identical plaintext blocks always produce identical ciphertext blocks. Which flaw is MOST likely?
Show the answer
Correct answerC. Use of ECB mode for encryption
AWhy not this: Salting applies to password hashing, not to block-cipher output from an API.
BWhy not this: A short key weakens brute-force resistance but does not create repeating ciphertext blocks.
CWhy this is right: ECB encrypts every block independently, so equal plaintext blocks yield equal ciphertext blocks.
DWhy not this: A hard-coded key exposes the secret, but the mode of operation causes the visible pattern.
ECB encrypts each block independently with the same key, so repeated plaintext blocks give repeated ciphertext blocks and leak patterns. A hard-coded key is a real flaw but does not by itself cause repeating blocks.