Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. friendsofsymfony/user-bundle
  4. ›
  5. GHSA-pjx8-984p-7p3x

GHSA-pjx8-984p-7p3x: FOSUserBundle Entropy is lost in the TokenGenerator

May 15, 2024

Because of the usage of base_convert which looses precision for large inputs, 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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/user-bundle/2014-09-04-1.yaml
  • github.com/FriendsOfSymfony/FOSUserBundle
  • github.com/FriendsOfSymfony/FOSUserBundle/commit/b3ebfea52065e9727508f5f8e6c9f7459a1b06d8
  • github.com/advisories/GHSA-pjx8-984p-7p3x
  • symfony.com/blog/fosuserbundle-entropy-of-generated-tokens-is-lost

Code Behaviors & Features

Detect and mitigate GHSA-pjx8-984p-7p3x with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.3.5

Fixed versions

  • 1.3.5

Solution

Upgrade to version 1.3.5 or above.

Weakness

  • CWE-331: Insufficient Entropy

Source file

packagist/friendsofsymfony/user-bundle/GHSA-pjx8-984p-7p3x.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.