Vulnerability · Published May 31, 2022 · Assigned by GitHub_M
CVE-2022-31013Authentication bypass in Vartalap chat-server
Critical 9.1
In plain English
A critical-severity improper authentication in chat-server from ramank775. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities).
Official description
Chat Server is the chat server for Vartalap, an open-source messaging application. Versions 2.3.2 until 2.6.0 suffer from a bug in validating the access token, resulting in authentication bypass. The function `this.authProvider.verifyAccessKey` is an async function, as the code is not using `await` to wait for the verification result. Every time the function responds back with success, along with an unhandled exception if the token is invalid. A patch is available in version 2.6.0.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ramank775 | chat-server | >= 2.3.2, < 2.6.0 |
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/ramank775/chat-server/security/advisories/GHSA-xx4j-qqpp-v277 x_refsource_CONFIRM
- https://github.com/ramank775/chat-server/discussions/78 x_refsource_MISC
- https://github.com/ramank775/chat-server/releases/tag/v2.6.0 x_refsource_MISC