Summary
BACnet Stack's Linux WebSocket server may accept TLS connections from clients that present no certificate because it does not require a valid client certificate. A network-reachable host could join the BACnet/SC mesh without credentials when this server configuration is in use.
Affected context
The issue occurs in the Linux WebSocket server startup path, where the libwebsockets context is configured with a CA certificate but not with the option that requires valid client certificates. Builds before the relevant patched releases may be affected when the hub is reachable by clients that are not otherwise trusted.
Exploit preconditions
- Attack surface: A network-reachable BACnet/SC WebSocket hub
- Required access: Network connectivity to the hub; the issue does not require a client certificate or other credentials
- Trigger point: Establishing a TLS connection to the server
- Why exploitation is possible: The server loads a CA certificate but does not require clients to present a valid certificate, allowing a connection without certificate-based client authentication
Why this happens
The server configuration does not enforce client certificate validation. This maps to CWE-295: Improper Certificate Validation: a security-sensitive connection is accepted without verifying the peer's identity as required. Loading a CA certificate alone does not require a client to present a certificate.
Potential impact
- An unauthenticated network host could join the BACnet/SC mesh
- An unauthorized participant may be able to interact with reachable mesh services
- Mesh integrity or availability could be affected, depending on the participant's access and the surrounding deployment
General mitigation guidance
Defensive patterns include requiring valid client certificates for connections to the hub and verifying that certificate validation is enforced in the server's effective runtime configuration.
- Use mutual TLS or another strong client-authentication mechanism for mesh access
- Validate certificate chains and relevant identity attributes
- Restrict network access to the WebSocket listener to trusted systems
- Apply least privilege to mesh participants and limit the services they can reach
- Test that connections without valid client credentials are rejected
How teams detect issues like this
- Review server initialization and TLS configuration for explicit enforcement of client certificate requirements
- Use static analysis or code review checks to flag TLS servers that load trust roots but do not require peer certificates
- Test the listener's behavior with no client certificate and with invalid or untrusted certificates
- Monitor connection and mesh membership logs for clients without expected certificate identities
- Enforce deployment policies requiring authenticated clients on BACnet/SC listeners

