srsEPC does not calculate HASHMME in pack_security_mode_command().
According to 3GPP TS 33.401 V14.2.0[1, Section: 7.2.4.4 NAS security mode command procedure], in the case of sending a NAS Security Mode Command during an Attach or TAU procedure, the MME shall calculate a HASHMME of the entire plain Request message and include the HASHMME in the NAS security mode command message.
These unprotected Attach and TAU Requests messages will lead to bidding down attacks.
In a man-in-the-middle attack, the attacker removes the UE’s voice calling capabilities from these unprotected messages and adds “Additional update type -SMS only” before forwarding them to the network.
Issue Description
srsEPC does not calculate HASHMME in pack_security_mode_command().
According to 3GPP TS 33.401 V14.2.0[1, Section: 7.2.4.4 NAS security mode command procedure], in the case of sending a NAS Security Mode Command during an Attach or TAU procedure, the MME shall calculate a HASHMME of the entire plain Request message and include the HASHMME in the NAS security mode command message.
These unprotected Attach and TAU Requests messages will lead to bidding down attacks.
In a man-in-the-middle attack, the attacker removes the UE’s voice calling capabilities from these unprotected messages and adds “Additional update type -SMS only” before forwarding them to the network.