Security mailing lists by PureSourceCode

GHSA-pjx8-984p-7p3x

MEDIUM

FOSUserBundle Entropy is lost in the TokenGenerator

Description

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.

Resolution

The token generation logic used in the 2.0.x branch based on base64 encoding has been backported. This changes the range of characters used in the token. Any route placeholder expected to match a token generated by FOSUserBundle must be updated to allow dashes, which are not allowed by \w in regexes. A \w+ requirement should so become [\w-]+.

Published
15 May 2024
Last modified
29 Nov 2024
Weakness
CWE-331
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist friendsofsymfony/user-bundle >= 1.0.0, < 1.3.5 1.3.5

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 15 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.