Skip to content
Crypto Disclosed report Intermediate

Weak Random Number Generator for Auth Tokens

The library uses Math.random() for authentication tokens, which is not cryptographically secure; the text does not show an attack.

voodookobra Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 13 days
  • Disclosed after 13 days

The original report as published on HackerOne, by voodookobra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

None

The fix

Replace Math.random() with a cryptographically secure random number generator such as window.crypto.getRandomValues().

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Math.random() produces numbers that are not suitable for cryptographic use. Authentication tokens need to be unpredictable, so using Math.random() for tokens is unsafe.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by voodookobra

View all

5 more disclosed reports, best first.

More from joola.io

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.