-
Notifications
You must be signed in to change notification settings - Fork 917
Prevent replaying ClientHello messages when Finished message are epoch 0 #9205
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
Conversation
d702709 to
f9f8373
Compare
f9f8373 to
ec335cd
Compare
|
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 |
JacobBarthelmeh
left a comment
There was a problem hiding this 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.
ec335cd to
4c94653
Compare
messages when receiving bogus Finished messages in epoch 0 by ensuring Finished messages are only ignored in encrypted epochs (1).
4c94653 to
8f47b4b
Compare
|
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 |
|
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 |
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_zeroin 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_PSKissue can be seen by running the client like so:
examples/client/client -i -x -p ${some_port} -s -u -l PSK-AES128-CBC-SHA256Addresses: #9188
Checklist