Skip to content

Get_Vectors_AuC: unexpected SQN increase logic #266

@osmith42

Description

@osmith42

This is a follow-up to the discussion from #262 (which I've updated to not change Get_Vectors_AuC).

Two things are unexpected in the SQN increase logic in Get_Vectors_AuC in lib/database.py:

  1. SQN gets increased with += 100. It looks like this just happens to work (or may desynchronize clients UEs often?), but the correct way according to 3GPP TS 33.102 § C.1.1.1 would be only increasing the SEQ part of SQN = SEQ | IND . (FWIW OsmoHLR assigns one IND to each client that connects by its name: https://gerrit.osmocom.org/c/osmo-hlr/+/16764)

  2. Loops with while kwargs['requested_vectors'] != 0: run S6a_crypt.generate_maa_vector or generate_eap_aka_vector once and then return the same vector (without increasing SQN!) multiple times in return vector_list.

(Fixing 2. should be trivial and could be done together with 1. in the same PR IMHO.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions