Insecure randomness in socket.io
High severity
GitHub Reviewed
Published
Nov 7, 2018
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Nov 7, 2018
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
Affected versions of
socket.io
depend onMath.random()
to create socket IDs, and therefore the IDs are predictable. With enough information on prior IDs, an attacker may be able to guess the socket ID and gain access to socket.io servers without authorization.Recommendation
Update to v0.9.7 or later.
References