A Bleichenbacher bit-by-bit oracle attack from partial message knowledge
Abstract
Oracle attacks show the importance of a correct implementation of cryptographic standards when translated into code. A notable example is the Bleichenbacher attack on RSA with PKCS#1 v1.5 padding and all the improvements that have been suggested over the decades. This paper shows how an attacker knowing a few least significant bytes of an RSA message can take advantage of a server with an oracle side-channel to decrypt the full message bit by bit. We will consider two oracles that can be tested with chosen ciphertexts: one revealing whether the decrypted message starts with the 00 02 bytes and a second one revealing if the decrypted message is fully PKCS compliant. For an attacker knowing the three least significant bytes of the message, the first oracle provides an attack where one oracle call gives the next least significant bit of the message and the second an attack which requires, with high probability, a small constant number of oracle calls to the oracle, with a constant which depends on the length of the message and the desired probability of success. The attack divides the message bits into two sections, one with the known part and one with the unknown part, and then chooses transformations that will keep the unknown part, except for the last unknown bit, orders of magnitude below the integer coming from the known part. The resulting string either gives a valid padding or not depending on the value of the unknown bit. The attacker can minimize the number of oracle calls at the cost of some local computation. Finally, the same method is adapted to show how it can also be used to extract the few least significant bytes of the message with an increased cost where the main complexity is finding a second valid message with a correct padding starting from the original captured ciphertext.
Create a lesson
Metadata
- Comments
- Comments welcome
Related papers
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminologycs.CRYingyan He
Game-Theoretic Analysis of RIS-Assisted Challenge-Response PLA - Part II: Partial Channel Knowledge
Shared title terminologycs.CRAnna V. Guglielmi, Linda Senigagliesi, Marco Baldi et al.
SwarmLeak: Does Coordination Improve Privacy Attacks on LLM Agents?
Shared title terminologycs.CRAsma Farajidizaji, Vyas Raina, Vatsal Raina et al.
Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests
Shared title terminologycs.CRKarthik Karunanithi
Code-Based Message Authentication with Statistical Guarantees via Coordinate Selection and Masking
Shared title terminologycs.CRHsuan-Po Liu, Hessam Mahdavifar
FATCAT: Fault Injection Attacks Targeting Chip-level Alignment
Shared title terminologycs.CRPeter Horvath, Ilia Shumailov, Zhuoran Liu et al.