Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Enforcement of Behavioral Workflow vulnerabilities in an interactive lesson.
Start learningUpgrade cesanta/mongoose to version 7.24 or higher.
cesanta/mongoose is a networking library for C/C++. It implements event-driven non-blocking APIs for TCP, UDP, HTTP, WebSocket, MQTT.
Affected versions of this package are vulnerable to Improper Enforcement of Behavioral Workflow in the mg_ws_cb function in src/ws.c, which tracks fragmented-message reassembly only by the offset ofs and keeps no state for whether a TEXT or BINARY start frame has been received. A lone CONTINUATION frame with FIN=1 sent as the first frame is treated as a completed fragmented message, so mg_ws_cb reads the first payload byte into mg_ws_message.flags and delivers the remainder as the message body through MG_EV_WS_MSG, and never closes the connection as RFC 6455 Section 5.4 requires. An unauthenticated peer that completes the WebSocket handshake can send one such frame to deliver a message whose flags field is fully attacker-controlled and whose payload is truncated by one byte. The effect is limited to WebSocket message-metadata integrity and content on the affected connection, with no memory corruption, and matters most for applications that trust or branch on mg_ws_message.flags.