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

Limit the number of certificates parsed in a chain #823

Merged
merged 1 commit into from
May 13, 2022

Conversation

haydentherapper
Copy link
Contributor

@haydentherapper haydentherapper commented May 12, 2022

This closes a vector for denial of service.

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

Summary

Ticket Link

Fixes

Release Note

Limited the number of certificates in a chain that can be provided to verify a signature

@haydentherapper haydentherapper requested a review from a team as a code owner May 12, 2022 16:12
@haydentherapper
Copy link
Contributor Author

Hm, something in the build broke, looks unrelated to this.

dlorenc
dlorenc previously approved these changes May 12, 2022
@haydentherapper
Copy link
Contributor Author

Pulling in the latest changes to sigstore/sigstore broke a few tests, because the sigstore verifiers no longer allow sha1, and alpine is using sha1.

This closes a vector for denial of service.

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@codecov-commenter
Copy link

Codecov Report

Merging #823 (4418afb) into main (18f9009) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #823   +/-   ##
=======================================
  Coverage   47.59%   47.60%           
=======================================
  Files          62       62           
  Lines        5503     5504    +1     
=======================================
+ Hits         2619     2620    +1     
  Misses       2574     2574           
  Partials      310      310           
Impacted Files Coverage Δ
pkg/pki/x509/x509.go 55.42% <100.00%> (+2.08%) ⬆️
pkg/types/alpine/apk.go 59.57% <100.00%> (ø)
pkg/types/alpine/v0.0.1/entry.go 53.75% <0.00%> (-1.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18f9009...4418afb. Read the comment docs.

@dlorenc dlorenc merged commit 95bf309 into sigstore:main May 13, 2022
@github-actions github-actions bot added this to the v1.0.0 milestone May 13, 2022
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.

3 participants