Skip to content

EarlySanityCheckMsgReceived: version_negotiated should always be checked#7141

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:zd/17249
Jan 22, 2024
Merged

EarlySanityCheckMsgReceived: version_negotiated should always be checked#7141
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:zd/17249

Conversation

@julek-wolfssl
Copy link
Copy Markdown
Member

Multiple handshake messages in one record will fail the MsgCheckBoundary() check on the client side when the client is set to TLS 1.3 but allows downgrading.
--> ClientHello
<-- ServerHello + rest of TLS 1.2 flight
Client returns OUT_OF_ORDER_E because in TLS 1.3 the ServerHello has to be the last message in a record. In TLS 1.2 the ServerHello can be in the same record as the rest of the server's first flight.

@julek-wolfssl julek-wolfssl self-assigned this Jan 18, 2024
@julek-wolfssl julek-wolfssl requested a review from cconlon January 18, 2024 17:56
Multiple handshake messages in one record will fail the MsgCheckBoundary() check on the client side when the client is set to TLS 1.3 but allows downgrading.
  --> ClientHello
  <-- ServerHello + rest of TLS 1.2 flight
  Client returns OUT_OF_ORDER_E because in TLS 1.3 the ServerHello has to be the last message in a record. In TLS 1.2 the ServerHello can be in the same record as the rest of the server's first flight.
Copy link
Copy Markdown
Member

@cconlon cconlon 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 to me

@JacobBarthelmeh JacobBarthelmeh merged commit eb1fff3 into wolfSSL:master Jan 22, 2024
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.

4 participants