Manger's attack on RSA-OAEP implementations (PKCS#1 v2.0)
James Manger (Telstra) showed at CRYPTO 2001 that if an RSA-OAEP decryptor lets an attacker distinguish 'first byte not zero' failures from later OAEP decoding failures, the plaintext of any ciphertext can be recovered in a little over log2(N) queries, about a thousand for a 1024-bit key.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
OAEP is provably secure, but only if decryption failures are indistinguishable. PKCS#1 v2.0's decoding steps made a distinguishable early check very natural to implement, through an error code or a timing difference. Manger's attack needs far fewer queries than Bleichenbacher's, so even a weak or noisy oracle is dangerous. PKCS#1 v2.1 (RFC 3447) revised the specification to require that all decoding errors be indistinguishable. Classified as protocol: the encoding/oracle interaction, not the RSA function, is at fault.
Sources
- paperA Chosen Ciphertext Attack on RSA OAEP as Standardized in PKCS #1 v2.0 (CRYPTO 2001)IACR, iacr.org
- paperSpringer LNCS recordSpringer LNCS, link.springer.com