Repository navigation
harden downgrade path for ECH - #11870
Open
sebastian-carpenter wants to merge 2 commits into
Open
sebastian-carpenter wants to merge 2 commits into
sebastian-carpenter wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Signature-algorithm selection can still trigger a credential-dependent abort before the required empty-certificate response.
1 open issue
What changed in this PR
This PR hardens wolfSSL’s Encrypted Client Hello (ECH) rejection handling when a server negotiates TLS 1.2.
Changes:
- Returns an ECH-required error instead of reporting handshake success.
- Suppresses client certificates and session persistence after ECH rejection.
- Adds a downgrade regression test covering rejection, certificates, and session storage.
| File | Description |
|---|---|
| tests/api.c | Adds and registers the ECH-to-TLS-1.2 downgrade test. |
| src/ssl_api_hs.c | Aborts rejected ECH connections before reporting success. |
| src/internal.c | Suppresses certificates, session caching, and ticket storage after rejection. |
Review effort: Balanced
sebastian-carpenter
force-pushed
the
ech-downgrade
branch
from
October 26, 2026 16:02
597de2a to
740acd7
Compare
Frauschi
reviewed
Oct 27, 2026
Frauschi
left a comment
Member
There was a problem hiding this comment.
Thanks, the TLS 1.2 downgrade now aborts with ech_required as it should. I built it with --enable-all --enable-ech, the new tests pass, and dropping the new check in wolfSSL_connect makes test_wolfSSL_Tls13_ECH_tls12_downgrade fail, so the fix is covered. The main question is the TLS 1.2 session case below; the rest are smaller.
sebastian-carpenter
force-pushed
the
ech-downgrade
branch
from
October 27, 2026 22:35
4ae0f41 to
d212600
Compare
Contributor
Author
|
Jenkins retest this please. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description
Clients using Encrypted Client Hello do not properly handle rejection via a downgrade to TLS1.2.
zd#22661
Testing
Added test with an ECH client that gets downgraded to TLS1.2. This also tests:
A client configured for TLS1.2 with ECH fails outright, instead of later
Harden resumption handling for TLS1.2
Checklist