Further to the announcement two weeks ago, the Faye project is
publishing ten more security advisories affecting the Faye WebSocket stack. This
time it is just the Ruby version of faye-websocket, and the Node.js and Ruby
versions of websocket-driver that are affected.
If you are using the Node.js versions of any of these packages, the patched releases are:
websocket-driver: v0.8.3
If you are using the Ruby versions of these packages the patched releases are:
faye-websocket: v0.13.1websocket-driver: v0.9.2
The advisories cover seven distinct flaws, all of which affect the Node.js versions, and only some of which affect Ruby. I will list these flaws below, with a link to the relevant advisory for each version:
- WebSocket handshake headers sent to server before TLS certificate validation completes
- Affects
faye-websocket - Ruby advisory
- Affects
- Memory exhaustion triggered by buffering of zero-length fragmented frames
- Affects
websocket-driver - Node.js advisory
- Affects
- Memory exhaustion triggered by buffering of data received after socket is closed
- Affects
websocket-driver - Node.js advisory
- Ruby advisory
- Affects
- Memory exhaustion triggered by small fragment frames holding long-lived references to TCP reads
- Affects
websocket-driver - Node.js advisory
- Affects
- Server crash triggered by client sending message data in the same TCP chunk as request headers
- Affects
websocket-driver - Node.js advisory
- Affects
- Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
- Affects
websocket-driver - Node.js advisory
- Ruby advisory
- Affects
- Excessive memory use caused by draft-75/76 buffering
- Affects
websocket-driver - Node.js advisory
- Ruby advisory
- Affects
Details of all the vulnerabilities can be found on the specific advisories, but
once again they mostly result in denial or degradation of service, caused either
by an uncaught error or unbounded memory use. The faye-websocket issue is
somewhat more concerning since it can potentially result in breach of
confidentiality if connecting to an untrusted server.
