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

Loosen MAX_PSK_ID_LEN check in TLSX_PopulateExtensions() to only server side #8302

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

cconlon
Copy link
Member

@cconlon cconlon commented Dec 19, 2024

Description

This PR loosens up the session ticket size sanity check in TLSX_PopulateExtensions() to only occur on the server side. This check was originally added as part of a fix for CVE-2019-11873. That CVE was specific to wolfSSL behavior when on the server-side.

This check interferes with stateless session resumption via session tickets with some non-wolfSSL server implementations that send large session tickets back. For example, Java >= 14 enables stateless session ticket resumption by default and puts the peer certificate into the encrypted session ticket sent back to the client. With the original sanity check in place, wolfSSL clients would fail a resumption attempt when building the ClientHello with the session ticket larger than MAX_PSK_ID_LEN.

Fixes ZD #16908

Testing

Tested underneath wolfJSSE when connecting to and resuming against a SunJSSE-based TLS server (<= Java 14).

A separate test case will be added to wolfJSSE to test receiving a large session ticket from the server.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@cconlon cconlon assigned cconlon and SparkiDev and unassigned cconlon Dec 19, 2024
@SparkiDev SparkiDev merged commit 00f83fa into wolfSSL:master Dec 19, 2024
148 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.

2 participants