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

Handle invalid elliptic curve gracefully when verifying signature #728

Merged
merged 4 commits into from
Oct 5, 2022

Conversation

haydentherapper
Copy link
Contributor

An invalid curve caused a panic when verifying. Note that this does not affect Rekor or Fulcio. In both cases, an invalid curve will be caught when unmarshalling the PKIX public key, which checks for curve validity.

Caught by OSS-Fuzz!

Signed-off-by: Hayden Blauzvern hblauzvern@google.com

Summary

Release Note

Documentation

An invalid curve caused a panic when verifying. Note that this does not
affect Rekor or Fulcio. In both cases, an invalid curve will be caught
when unmarshalling the PKIX public key, which checks for curve validity.

Caught by OSS-Fuzz!

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
pkg/signature/ecdsa.go Outdated Show resolved Hide resolved
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
bobcallaway
bobcallaway previously approved these changes Oct 5, 2022
asraa
asraa previously approved these changes Oct 5, 2022
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

nice tests!

pkg/signature/ecdsa.go Outdated Show resolved Hide resolved
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@haydentherapper haydentherapper dismissed stale reviews from asraa and bobcallaway via ea2b228 October 5, 2022 17:46
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@dlorenc dlorenc merged commit bba7507 into sigstore:main Oct 5, 2022
@haydentherapper haydentherapper deleted the handle-curve branch October 5, 2022 20:19
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.

4 participants