free5GC AUSF uses non-constant-time authentication comparisons and logs XRES* in 5G-AKA
The AUSF component of free5GC compares authentication response values with normal Go equality helpers instead of constant-time cryptographic comparison functions. Two authentication flows are affected in internal/sbi/processor/ue_authentication.go: 5G-AKA confirmation compares RES* and XRES* with strings.EqualFold(). EAP-AKA' confirmation compares AT_MAC with bytes.Equal() and compares XRES and RES with ==. These functions are not designed to be constant-time cryptographic comparators and may return earlier depending on the location of the first mismatch. …