GHSA-pjx8-984p-7p3x json
FOSUserBundle Entropy is lost in the TokenGenerator
published 2y ago modified last yr.
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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\-]+.
Patch / fix
- packagist friendsofsymfony/user-bundle 1.3.5
Is GHSA-pjx8-984p-7p3x in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | friendsofsymfony/user-bundle | >=1.0.0, <1.3.5 |
1.3.5 |
Classification
- Weakness
-
- CWE-331 Insufficient Entropy
References
-
github.com
/FriendsOfSymfony/FOSUserBundle/commit/b3ebfea52065e9727508f5f8e6c9f7459a1b06d8
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/user-bundle/2014-09-04-1.yaml
web
-
github.com
/FriendsOfSymfony/FOSUserBundle
package
-
symfony.com
/blog/fosuserbundle-entropy-of-generated-tokens-is-lost
web
Sources
- GitHub Advisory GHSA-pjx8-984p-7p3x
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.