Skip to content
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

Core sends SendHandshakeData query with type NOTIFICATION #3755

Closed
jacobkeeler opened this issue Aug 13, 2021 · 1 comment
Closed

Core sends SendHandshakeData query with type NOTIFICATION #3755

jacobkeeler opened this issue Aug 13, 2021 · 1 comment
Labels

Comments

@jacobkeeler
Copy link
Contributor

jacobkeeler commented Aug 13, 2021

Bug Report

When SDL Core starts the handshake for an encrypted service, it sends a SendHandshakeData query with type 0x20 (NOTIFICATION). According to SDL-0317, this message is a request/response pair, and Core should send this message with the type 0x00 (REQUEST). In addition, Core always sends a value of 0 for the Sequential Number field, whereas it should send a different value for every request.

- const SecurityQuery::QueryHeader header(SecurityQuery::NOTIFICATION,
+ const SecurityQuery::QueryHeader header(SecurityQuery::REQUEST,
                                          SecurityQuery::SEND_HANDSHAKE_DATA,
                                          seq_number);
  // for client mode will be generated output data
  if (data != NULL && data_size != 0) {
-   SendHandshakeBinData(connection_key, data, data_size);
+   SendHandshakeBinData(connection_key, data, data_size, NextSequenceNumber());
  }
Reproduction Steps
  1. Active app attempts to start encrypted video service by sending Start Service (Video) with encrypted=true
Expected Behavior

Core sends SendHandshakeData security query with REQUEST type and a unique sequential number

Observed Behavior

Core sends SendHandshakeData security query with NOTIFICATION type and a sequential number of 0

OS & Version Information
  • OS/Version: Ubuntu 20.04
  • SDL Core Version: develop
  • Testing Against: SDL Test Suite
@jacobkeeler
Copy link
Contributor Author

Closed via #3761

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants