GHSL-2026-004_GHSL-2026-005: Authentication bypass in Rocket.Chat - CVE-2026-28514, CVE-2026-30833
The account service in Rocket.Chat's ddp-streamer microservice checked a password by calling an asynchronous validation function without awaiting it, so a truthy Promise was treated as a successful match and any password was accepted. A separate NoSQL injection in the username lookup let an attacker supply a MongoDB operator instead of a username, so combined they could log in as any user without knowing the exact username.
A critical authentication bypass vulnerability was found in Rocket.Chat’s account service used in the ddp-streamer micro service that allowed an attacker to log in as any user using any arbitrary password. In the same service a NoSQL injection flaw in the username field was found.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing await on an asynchronous password check made a Promise (always truthy) stand in for the boolean result, and the username was placed into a MongoDB query without type validation.
Impact
This could lead to full account takeover of any user whose username is known or guessable, and with the injection, without fully knowing the usernames.
What the attacker needed
Network access to the websocket endpoint; target user has a password set; username known or guessable
The fix
The missing await was added and the username input was validated; fixes were released in versions 8.0.0 and later supported versions.
How it was found
- Connect to the ddp-streamer login method exposed over the websocket endpoint.
- Send a login request with a known username and any password; the password check is bypassed.
- Send a login request where the username field contains a MongoDB operator expression instead of a string.
- Combine both so a matching user is found and login succeeds without the exact username.
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 report has not been written yet. The Original tab links to the source.
When a program checks a password, it should wait for the comparison to finish and only accept a clear 'yes'. Here the code started the comparison but did not wait for the answer, and in JavaScript an unfinished task counts as 'true', so every password passed. A second flaw let a special value be sent where a username is expected, so the database returned some user instead of the one asked for.
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.