joola.io · Report #31166
Weak Random Number Generator for Auth Tokens
Validstatus
3upvotes
25 Oct 2014disclosed
How it was found
Math.random() is not sufficient for cryptographic purposes (such as authentication tokens).
An example replacement that uses window.crypto.getRandomValues() is available here:
Further information: https://media.blackhat.com/us-13/US-13-Soeder-Black-Box-Assessment-of-Pseudorandom-Algorithms-WP.pdf