TLS 1.3, plaintext alert: ignore when expecting encrypted#9466
TLS 1.3, plaintext alert: ignore when expecting encrypted#9466dgarske merged 1 commit intowolfSSL:masterfrom
Conversation
|
🛟 Devin Lifeguard found 1 likely issues in this PR
@SparkiDev |
130c70d to
8943d6c
Compare
|
If the goal of this PR is to protect against DoS I don't think it's a good idea:
UDP is different but |
|
DoS can be done by any message, it doesn't have to be a valid alert. Instead the PR is about skipping alerts that were sent by the client before it received anything from the server to indicate it should be encrypted. OpenSSL and others do this. May make this a compile time option. |
|
retest this please |
julek-wolfssl
left a comment
There was a problem hiding this comment.
I still don't agree with fixing it. IMO ignoring plaintext alerts is going to introduce edge cases in the transition period between plaintext and ciphertext. This in turn can hang clients/servers that think the connection is still alive when its really dead. The argument that its a DoS of a connection doesn't make any sense since injecting garbage would also kill the connection.
e2938ed to
ebc15e8
Compare
|
Changed to be compile time option when WOLFSSL_TLS13_IGNORE_PT_ALERT_ON_ENC is defined. |
8a94314 to
9bce18f
Compare
|
retest this please |
julek-wolfssl
left a comment
There was a problem hiding this comment.
Please add WOLFSSL_TLS13_IGNORE_PT_ALERT_ON_ENC to os-check.yml. I think a good configuration would be one that explicitly enables TLS and DTLS both 1.2 and 1.3.
9bce18f to
bfc90a4
Compare
|
rebased and add configuration to os-check.yml |
bfc90a4 to
8885e59
Compare
|
rebased and updated os-check.yml to use CPPFLAGS |
|
retest this please generic: |
In TLS 1.3, ignore valid unencrypted alerts that appear after encryption has started. Only ignore WOLFSSL_ALERT_COUNT_MAX-1 alerts.
b766f11
8885e59 to
b766f11
Compare
|
retest this please |
Description
In TLS 1.3, ignore valid unencrypted alerts that appear after encryption has started.
Only ignore WOLFSSL_ALERT_COUNT_MAX-1 alerts.
Fixes zd#20857
Testing
./configure --disable-shared
make
./tests/unit.test -test_tls13_plaintext_alert
Checklist