GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Apply certificate list size floor by arnabnandy7 · Pull Request #17674 · netty/netty Conversation
Contributor
Motivation: BoringSSL enforces a 16 KiB minimum certificate-list limit. Passing a smaller positive MAX_CERTIFICATE_LIST_BYTES value unchanged can cause compressed certificates to be rejected with UNCOMPRESSED_CERT_TOO_LARGE, even though the effective lower bound for certificate processing is 16 KiB. Modification:
Result: Certificate-list size limits are consistent with BoringSSL's effective 16 KiB minimum, including when processing compressed certificates. Fixes #17673.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsSigned-off-by: Arnab Nandy <[email protected]>
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. I checked this against BoringSSL's source and with real handshakes (netty-tcnative-boringssl-static 2.0.84, Why the floor exists. In BoringSSL (and AWS-LC), the handshake message limit is Handshakes. Server certificate padded to about 6.8 KB or 20.8 KB, client
So the PR does what it says, and limits above 16 KiB are still enforced in both modes. Nits:
The failing Prepared with Claude Code on behalf of allthingssecurity.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…cate compression Motivation: BoringSSL rejects a compressed certificate whose uncompressed length exceeds max_cert_list without applying the 16 KiB floor it applies to regular handshake messages. The unit test for ReferenceCountedOpenSslContext only verifies the clamping helper, not that a real handshake with certificate compression and a small limit succeeds. Modification: - Add OpenSslCertificateCompressionTest.testMaxCertificateListSmallLimitWithCompression which uses a 4096 byte limit and a ~6 KiB certificate with compression negotiated and expects the handshake to succeed. - Add OpenSslCertificateCompressionTest.testMaxCertificateListLimitAboveFloorWithCompression to ensure certificates larger than the 16 KiB floor are still rejected. Result: The effective 16 KiB minimum for MAX_CERTIFICATE_LIST_BYTES is covered by handshake tests for compressed certificates.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
approved these changes
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
added a commit
that referenced
this pull request
Motivation: BoringSSL enforces a 16 KiB minimum certificate-list limit. Passing a smaller positive MAX_CERTIFICATE_LIST_BYTES value unchanged can cause compressed certificates to be rejected with UNCOMPRESSED_CERT_TOO_LARGE, even though the effective lower bound for certificate processing is 16 KiB. Modification: - Clamp positive MAX_CERTIFICATE_LIST_BYTES values below 16 KiB to 16 KiB. - Preserve zero and negative values unchanged. - Document the effective minimum in OpenSslContextOption. - Add focused tests covering values below, at, and above the boundary, as well as zero and negative values. Result: Certificate-list size limits are consistent with BoringSSL's effective 16 KiB minimum, including when processing compressed certificates. Fixes #17673. --------- Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Norman Maurer <[email protected]> Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Arnab Nandy <[email protected]>
normanmaurer
added a commit
that referenced
this pull request
Motivation: BoringSSL enforces a 16 KiB minimum certificate-list limit. Passing a smaller positive MAX_CERTIFICATE_LIST_BYTES value unchanged can cause compressed certificates to be rejected with UNCOMPRESSED_CERT_TOO_LARGE, even though the effective lower bound for certificate processing is 16 KiB. Modification: - Clamp positive MAX_CERTIFICATE_LIST_BYTES values below 16 KiB to 16 KiB. - Preserve zero and negative values unchanged. - Document the effective minimum in OpenSslContextOption. - Add focused tests covering values below, at, and above the boundary, as well as zero and negative values. Result: Certificate-list size limits are consistent with BoringSSL's effective 16 KiB minimum, including when processing compressed certificates. Fixes #17673. --------- Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Norman Maurer <[email protected]> --------- Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Arnab Nandy <[email protected]>
lltopk
pushed a commit
to lltopk/netty
that referenced
this pull request
Motivation: BoringSSL enforces a 16 KiB minimum certificate-list limit. Passing a smaller positive MAX_CERTIFICATE_LIST_BYTES value unchanged can cause compressed certificates to be rejected with UNCOMPRESSED_CERT_TOO_LARGE, even though the effective lower bound for certificate processing is 16 KiB. Modification: - Clamp positive MAX_CERTIFICATE_LIST_BYTES values below 16 KiB to 16 KiB. - Preserve zero and negative values unchanged. - Document the effective minimum in OpenSslContextOption. - Add focused tests covering values below, at, and above the boundary, as well as zero and negative values. Result: Certificate-list size limits are consistent with BoringSSL's effective 16 KiB minimum, including when processing compressed certificates. Fixes netty#17673. --------- Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Norman Maurer <[email protected]> Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Arnab Nandy <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Apply BoringSSL's 16 KiB certificate-list floor to compressed certificatesUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |