
Cloud Vulnerability DB
A community-led vulnerabilities database
When using Faye::WebSocket::Client to make a connection to a wss: endpoint, the request headers are sent before TLS certificate validation has been completed, which may result in disclosure of credentials to an untrusted server.
Due to a mistake in how this class uses the EventMachine start_tls and ssl_handshake_completed methods, it begins sending data over the TLS socket after an encrypted stream has been set up, but before the TLS certificate has been completely validated. If the user has added custom headers to the request, those headers would be sent at this point. If those headers contain credentials or other secrets, this may result in disclosure of those secrets to an untrusted server.
This is not a man-in-the-middle vulnerability since the headers are sent over the encrypted channel. But it does mean that headers are sent before the server's identity has been verified, so those secrets may be conveyed to a server the client does not trust. If an attacker is able to make the client's request route to a server the attacker controls, this would allow the attacker to steal those secrets.
The vulnerability has been mitigated by correcting the control flow so that request data is only sent after a the TLS handshake process is complete, including verification of certificates.
A WebSocket client that can be fooled into connecting to an untrusted server, and which includes credentials or other secrets in its request headers, may disclose those secrets to the server, rendering them compromised.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."