PT-2018-4698 · Ws · Ws
Feross
+1
·
Published
2018-05-31
·
Updated
2019-10-09
·
CVE-2016-10518
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
ws versions prior to 1.0.1
Description
A vulnerability was found in the ping functionality of the ws module, allowing clients to allocate memory by sending a ping frame. The ping functionality responds with a pong frame and the previously given payload of the ping frame. Internally, ws transforms all data to be sent into a Buffer instance without checking the type of data, which leads to the vulnerability. This issue can cause a remote memory disclosure in certain circumstances, potentially disclosing sensitive information that still exists in memory after previous use.
Recommendations
Update to version 1.0.1 or greater.
As a temporary workaround, consider restricting the use of the
client.ping() function to minimize the risk of exploitation.Fix
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Ws