Analysis of NodeBB Account Takeover Vulnerability (CVE-2022-46164)
NodeBB's Socket.IO implementation did not properly verify the identity of a connecting client, so an attacker could impersonate another user and take over their account. The text describes an intern's n-day analysis and reproduction of CVE-2022-46164 based on the official advisory.
starlabs.sg
Published on starlabs.sg
Back in January 2023, I tasked one of our web security interns, River Koh (@oceankex), to perform n-day analysis of CVE-2022-46164 as part of his internship with STAR Labs. The overall goal is to perform an objective assessment of the vulnerability based on the facts gathered.
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 Socket.IO connection handshake did not properly authenticate the user's session, allowing a client to assert another user's identity.
Impact
An attacker could take over another user's account, though the text does not detail the full extent of what the attacker could then do.
What the attacker needed
NodeBB forum with Socket.IO enabled
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 a real-time messaging library called Socket.IO so users see new posts and notifications instantly. The bug meant the server trusted a client's claim about who it was, so someone could pretend to be another user and gain control of that person's account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.