Insufficient Randomness Affecting friendsofsymfony/user-bundle package, versions <1.3.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-FRIENDSOFSYMFONYUSERBUNDLE-70101
  • published4 Sept 2014
  • disclosed4 Sept 2014
  • creditAndreas Forsblom

Introduced: 4 Sep 2014

CVE NOT AVAILABLE CWE-330  (opens in a new tab)

How to fix?

Upgrade friendsofsymfony/user-bundle to version 1.3.5, 1.3.0 or higher.

Overview

Affected versions of friendsofsymfony/user-bundle are vulnerable to Insufficient Randomness.

The usage of base_convert looses precision for large inputs, which causes the entropy of tokens generated by FOSUserBundle for the email confirmation and password resetting is lost. This makes these tokens much less random than they are expected to be, and so not cryptographically safe.

CVSS Scores

version 3.1