Ten further security advisories

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.1
  • websocket-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:

  1. WebSocket handshake headers sent to server before TLS certificate validation completes
  2. Memory exhaustion triggered by buffering of zero-length fragmented frames
  3. Memory exhaustion triggered by buffering of data received after socket is closed
  4. Memory exhaustion triggered by small fragment frames holding long-lived references to TCP reads
  5. Server crash triggered by client sending message data in the same TCP chunk as request headers
  6. Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
  7. Excessive memory use caused by draft-75/76 buffering

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.