Security Architecture and Engineering

An attacker holds a captured RSA-encrypted session key and no private key. The server decrypts submitted ciphertexts and returns a distinct error for each padding failure. Which attack applies, and which control best stops it?

Show the answer

Correct answerB. Chosen ciphertext attack; use OAEP padding and return one uniform error for every failure

AWhy not this: The leak is the content of the error messages, not response time, so delays would not stop the oracle.

BWhy this is right: Submitting modified ciphertexts and learning from padding errors is chosen ciphertext; OAEP and uniform errors remove the oracle.

CWhy not this: The attacker is querying the server, not intercepting a live exchange, so authenticating endpoints does not close the oracle.

DWhy not this: No plaintext/ciphertext pairs are in play, and a longer key does not close an oracle that leaks through error responses.

The attacker submits chosen ciphertexts to a decryption oracle and learns from the error responses. OAEP and uniform errors remove that oracle. Random delays address timing leakage, not distinct error messages.