Score:0

Understanding MITM in an example authentication protocol

de flag

Imagine that we have a protocol like this:
B -> A: RB
A -> B: {RB,B}K

Goal: authenticate A to B
K: a shared key between A and B
{}K: encrypting by K

After receiving {RB, B}K by B, B is able to authenticate A. But what if we have something like:
A -> C: {RB,B}K
C -> B: {RB,B}K
so in this case B will authenticate C instead of A, isn't it?

Score:1
ng flag

In the question's example, C is acting a Man-in-the-Middle (MitM), impersonating B with respect to A (at the communication level) when receiving {RB,B}K, and impersonating A with respect to B (similarly) when sending {RB,B}K. Absent measures not described, B will accept the message {RB,B}K sent by C as if it came directly from A.

Such possibility of a MitM is a standard hypothesis in cryptography and protocol design, because it's it's physically possible in the overwhelming majority of communication means in use today: wires, optical fiber, radio (including satellite).

Whether "B will authenticate C instead of A" is a matter of convention and context, and these vary.

Absent other attack¹, the protocol insures that A participated in the exchange, and I would not say that the authentication property of the protocol limited to what's described in the question² is broken or useless. For example if A is a remote control for a device B, then the remote was involved within the time period between generating RB and accepting {RB,B}K. If further B verifies that this time period is as most $t$, then B has the insurance A is within distance $t\,c/2$, where $c$ is the speed of light.


¹ Attacks are possible or not depending on properties of the encryption used, and on how parties with knowledge of key K (including A and B) use it beyond what's described in the question.

² Things would be quite different if the question ended in: having authenticated A, B proceeds to communicate.

Score:0
de flag

The main problem in this question is understanding the authentication correctly.
If B wants to authenticate A, it means B must receive adequate evidence of message authentication and entity authentication from A.

A -> C: {RB,B}K
C -> B: {RB,B}K 

In this scheme, on one hand, C is just acting like a wire, and on the other hand, B is receiving enough evidence of message authentication and entity authentication from A.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.