]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-SIM peer: Do not accept SIM/Challenge without SIM/Start
authorJouni Malinen <j@w1.fi>
Mon, 23 Dec 2019 21:59:16 +0000 (23:59 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Dec 2019 21:59:16 +0000 (23:59 +0200)
commit07fe134d9cb80e022bad0fc2307ca9edc9549f6a
treefc8df2343281b388dffc6064c39615d76155c9dd
parent2636362717f8197f24d2974ce02396efb6f9dd97
EAP-SIM peer: Do not accept SIM/Challenge without SIM/Start

EAP-SIM full authentication starts with one or more SIM/Start rounds, so
reject an unexpected SIM/Challenge round without any preceeding
SIM/Start rounds to avoid unexpected behavior. In practice, an attempt
to start with SIM/Challenge would have resulted in different MK being
derived and the Challenge message getting rejected due to mismatching
AT_MAC unless the misbehaving server has access to valid Kc, so the end
result is identical, but it is cleaner to reject the unexpected message
explicitly to avoid any risk of trying to proceed without NONCE_MT.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_sim.c