SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Lowe's attack

Lowe's attack is a man-in-the-middle attack on the Needham-Schroeder public-key authentication protocol, described by Gavin Lowe in an author's preprint dated 22 August 1995 and published in Information Processing Letters 56(3), pages 131 to 133, according to the Oxford publication record 12. It lets an intruder impersonate one agent to another, which the protocol was meant to prevent. The protocol dates from Needham and Schroeder's 1978 paper 3.

Lowe assumes that the intruder I is a user of the network, so it can set up ordinary sessions with other agents and other agents can set up sessions with it. I can intercept any message and introduce new ones, but cannot guess nonces carried in encrypted messages unless they are encrypted with its own key 1. Lowe sets aside the problem that the protocol gives no guarantee that fetched public keys are current, and assumes each agent already holds the other's key 1.

The attack uses two interleaved runs. In run 1, A starts a legitimate session with I, sending its nonce Na encrypted under I's key. In run 2, I replays Na to B, encrypted under B's key and appearing to come from A. B answers with Na and a new nonce Nb encrypted under A's key. I cannot read that reply, so it forwards it to A in run 1; this message has the form A expects in that run. A decrypts it and returns Nb to I, encrypted under I's key, and I re-encrypts Nb under B's key and sends it to B to finish run 2. B now believes it has a session with A. Lowe describes this as I using A as an oracle 1.

After the attack I knows both nonces, so it can send B further messages that B will believe came from A. Lowe's example is a funds-transfer instruction sent to a bank 1. Lowe also notes that the protocol's authors and others had suggested that the shared secret nonces could be used to authenticate later messages, which the attack undermines 1.

The fix is a single change: include the responder's identity in the second message, so that B sends {B, Na, Nb} under A's key. In the attack, A expects a message naming I and rejects one naming B. Lowe presents this as an instance of a principle from Abadi and Needham: if the identity of a principal is essential to the meaning of a message, it is prudent to mention the principal's name explicitly in the message 1. In 1995 he only conjectured the revised protocol was safe against attacks not relying on properties of the encryption. His 1996 paper used the FDR model checker to find the attack automatically and to show the corrected protocol secure for a small system, then proved a result extending this to systems of any size 4.

Source · An Attack on the Needham-Schroeder Public-Key Authentication Protocol (opens in a new tab) · Gavin Lowe, University of Oxford

References

  1. An Attack on the Needham-Schroeder Public-Key Authentication Protocol (opens in a new tab) · Gavin Lowe, University of Oxford (author's preprint; Information Processing Letters 56(3)) · August 22, 1995 ↩ ↩ ↩ ↩ ↩ ↩ ↩
  2. Gavin Lowe, publications (opens in a new tab) · Department of Computer Science, University of Oxford · Publication record for the Information Processing Letters version. ↩
  3. Using Encryption for Authentication in Large Networks of Computers (opens in a new tab) · Roger M. Needham and Michael D. Schroeder, Communications of the ACM 21(12) · December 1, 1978 ↩
  4. Breaking and Fixing the Needham-Schroeder Public-Key Protocol using FDR (opens in a new tab) · Gavin Lowe, Oxford University Computing Laboratory ↩

Research articles

See what connects to it on the map of ideas →

See also