Pre-Submission Checklist

Type Of Change

Checklist:

Description

This PR aims to fix a bug/security issue where data that was supposed to be encrypted and transferred through TLS, were transferred instead with TCP protocol.

More information and how to replicate can be found in the above issue in list.

This PR suggests using also the protocol to match if a TCP connection exists, and when doing connection lookups, otherwise, it might return a wrong connection, ie a TCP one when we are asking for a TLS one (a case when source ip/port and dest IP are same but dest port is set 0 (wildcard) ).

tcpconn_get was left unchanged due to being used by some modules and not wanting to break them. Please advise whether it should be beneficial to also change it.

In some cases like, tcpconn_add_alias and tcpconn_get we used the PROTO_NONE which preserves the original behavior. tcpconn_add_alias we do have the protocol available, should it be also used?
tcpconn_get does not have the protocol available unless we pass it as an argument.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3810

Commit Summary

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3810@github.com>