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

crypto: Add check isOnCurve for UnmarshalPubkey #685

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chiphamskymavis
Copy link
Contributor

Address report: GHSA-q26p-9cq4-7fc2
Update x/crypto due to vulnerability report: https://pkg.go.dev/vuln/GO-2024-3321

Comment on lines +175 to +177
if !curve.IsOnCurve(x, y) {
return nil, errInvalidPubkey
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary. We don't have this commit and there is check in elliptic.Unmarshal:https://github.com/golang/go/blob/ff27d270c9f95178f9749bc8e1f15957b1c1d5b3/src/crypto/elliptic/elliptic.go#L171-L173

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.

2 participants