Vulnerability issue on Math.random() - Fortify Priority: High
Author: francescaProjectCreated Feb 9, 2024Updated Feb 9, 2024
The random number generator implemented by random() cannot withstand a cryptographic attack. In this case, the function that generates weak random numbers is random() in sockjs.js on line 3607.
return Math.floor(Math.random() * max);
Source: sockjs/sockjs-client