Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Invalid Curve Attack on 5G SUCI Feature #20

Merged
merged 4 commits into from May 8, 2023
Merged

Conversation

Roy-Hu
Copy link
Contributor

@Roy-Hu Roy-Hu commented Mar 27, 2023

If the UDM is utilizing a Go version that is earlier than 1.19, it may compute the shared secret using an uncompressed public key that is not validated. This absence of validation creates an opportunity for an attacker to exploit the vulnerability and calculate
the private key by sending arbitrary SUCIs to the UDM, which will then attempt to decrypt them using both its own private key and the attacker's public key. Therefore, reference to go 1.19, we check if the keys are operating on valid curve points before compute the shared secret.

pkg/suci/suci_test.go Outdated Show resolved Hide resolved
pkg/suci/suci_test.go Outdated Show resolved Hide resolved
pkg/suci/suci_test.go Outdated Show resolved Hide resolved
pkg/suci/suci_test.go Outdated Show resolved Hide resolved
pkg/suci/suci_test.go Outdated Show resolved Hide resolved
pkg/suci/suci_test.go Outdated Show resolved Hide resolved
@tim-ywliu tim-ywliu merged commit 5e1479c into free5gc:main May 8, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants