(CVE-2023-30591) NodeBB Pre-Authentication Denial-of-Service
NodeBB mishandled Socket.IO event names that were arrays or objects, causing the server to crash and exit permanently. An unprivileged attacker could send crafted Socket.IO messages to take the service down.
starlabs.sg
Published on starlabs.sg
NodeBB is an open-source community forum platform built on Node.js with the addition of either a Redis, MongoDB, or PostgreSQL database. One of the features of the platform is the utilization of Socket.IO for instant interactions and real-time notifications.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server called string methods on the event name without first checking that it was actually a string, so array or object values triggered an unhandled error that terminated the process.
What the attacker needed
Network access to the Socket.IO endpoint; no account needed
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
NodeBB is forum software that uses Socket.IO to keep a live connection between the browser and the server. The server expected every event name to be a simple piece of text, but it did not check this properly. When someone sent an event name that was a list or a structured object instead, the server hit an error it could not recover from and stopped running, so the whole forum went offline.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.