Ensure WebSocket protections are active
developWebSocket security features (reserved-opcode rejection, pre-buffer frame-size validation, and RFC 6455-conformant close handling) are conditional. They only apply if the proxy is actively parsing the WebSocket frames.
To ensure these protections are active, you must avoid the following two bypass paths:
- Opaque TLS Relay: Do not use
decryptSsl: falseon the endpoint or tunnel handling the connection. If TLS is not decrypted, the proxy cannot validate the WebSocket content. - Non-HTTP Relay: Avoid using a
SocksProxyEndPointfor WebSocket traffic, as non-HTTP traffic is relayed transparently without parsing.