Skip to content

Wrong SNI when using a socks proxy #1036

@herste

Description

@herste

Describe the bug
Whenever a proxy is used, the proxy hostname is used in the TLS handshake server_name extension (SNI). This leads to problems in various TLS contexts

To Reproduce
start a initiator session at least with the following settings active:
SocketConnectHost=[your-connect-host]
ProxyType=socks
ProxyVersion=5
ProxyHost=[your-socks-proxy-host]
ProxyPort=[your-proxy-port]

whenever you are connecting, [your-socks-proxy-host] is now set as SNI which is wrong.

Expected behavior
the expected result is that [your-connect-host] is used as SNI in the TLS handshake packet. if multiple connect hosts are given, the appropriate host that is currently connected to is to be set.

system information:

  • OS: Linux
  • Java version: Temurin-17.0.15+6
  • QFJ Version 2.3.1 and 2.3.2

Additional context
2.3.2 has removed the option to enable/disable SNI. Seems that it is now always on which also might break connections where now a SNI is implicitely set .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions