NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

medium

Description Because of the usage of baseconvert 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.

Published May 15, 2024

Affected packages

friendsofsymfony/user-bundle

Ecosystem
Composer (PHP)
Affected
>= 1.0.0, < 1.3.5
Fixed in
1.3.5
Check
composer show friendsofsymfony/user-bundle

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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\-]+.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries