logo

GHSA-pjx8-984p-7p3x friendsofsymfony/user-bundle

Package

Manager: composer
Name: friendsofsymfony/user-bundle
Vulnerable Version: >=1.0.0 <1.3.5

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

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

Metadata

Created: 2024-05-15T21:42:25Z
Modified: 2024-05-15T21:42:25Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-pjx8-984p-7p3x/GHSA-pjx8-984p-7p3x.json
CWE IDs: ["CWE-331"]
Alternative ID: N/A
Finding: F034
Auto approve: 1