Skip to content

Conversation

@gasbytes
Copy link
Contributor

@gasbytes gasbytes commented Sep 16, 2025

Description

Prevent DTLS clients from replaying ClientHello messages when receiving bogus Finished messages in epoch 0 by ensuring Finished messages are only ignored in encrypted epochs (1).

Testing

Added test case named test_dtls_bogus_finished_epoch_zero in the file tests/api/test_dtls.c.

configuration:
AM_CFLAGS='-DHAVE_AES_CBC -DWOLFSSL_AES_128 -DWOLFSSL_DEBUG_TLS' ./configure --enable-dtls --enable-dtls13 --enable-keylog-export --enable-psk --enable-rsa --enable-sha --enable-debug C_EXTRA_FLAGS=-DWOLFSSL_STATIC_PSK

issue can be seen by running the client like so:
examples/client/client -i -x -p ${some_port} -s -u -l PSK-AES128-CBC-SHA256

Addresses: #9188

Checklist

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

@gasbytes
Copy link
Contributor Author

Jenkins retest this please

For AgentOfflineException: Unable to create live FilePath for wolf-linux-cloud-node-[n]; wolf-linux-cloud-node-[n] was marked offline: Connection was broken

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

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

Looks good.

@julek-wolfssl please also review, and merge if passing review. Thanks.

messages when receiving bogus Finished messages in epoch 0 by
ensuring Finished messages are only ignored in encrypted epochs (1).
@gasbytes
Copy link
Contributor Author

Jenkins retest this please

For AgentOfflineException: Unable to create live FilePath for wolf-linux-cloud-node-[n]; wolf-linux-cloud-node-[n] was marked offline: Connection was broken

@gasbytes
Copy link
Contributor Author

Jenkins retest this please

For AgentOfflineException: Unable to create live FilePath for wolf-linux-cloud-node-[n]; wolf-linux-cloud-node-[n] was marked offline: Connection was broken

@julek-wolfssl julek-wolfssl removed their assignment Sep 22, 2025
@douzzer douzzer merged commit b3a5c96 into wolfSSL:master Oct 1, 2025
342 of 345 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.

5 participants