GHSA-5pv8-ppvj-4h68
Prevent user enumeration using Guard or the new Authenticator-based Security
Quick fix
GHSA-5pv8-ppvj-4h68 — symfony/security: upgrade to the fixed version with the command below.
composer require symfony/security:^5.2.8Details
Description -----------
The ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not. It was also possible to enumerate users by using a timing attack, by comparing time elapsed when authenticating an existing user and authenticating a non-existing user.
Resolution ----------
We now ensure that 403s are returned whether the user exists or not if the password is invalid or if the user does not exist.
The patch for this issue is available [here](https://github.com/symfony/symfony/commit/2a581d22cc621b33d5464ed65c4bc2057f72f011) for branch 3.4.
Credits -------
I would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
5.0.0Fixed in: 5.2.8composer require symfony/security:^5.2.82.8.0Fixed in: 3.4.48composer require symfony/security-guard:^3.4.484.0.0Fixed in: 4.4.23composer require symfony/security-guard:^4.4.235.0.0Fixed in: 5.2.8composer require symfony/security-guard:^5.2.82.8.0Fixed in: 3.4.48composer require symfony/security-core:^3.4.484.0.0Fixed in: 4.4.23composer require symfony/security-core:^4.4.235.0.0Fixed in: 5.2.8composer require symfony/security-core:^5.2.82.0.0Fixed in: 2.10.7composer require lexik/jwt-authentication-bundle:^2.10.72.11.0Fixed in: 2.11.3composer require lexik/jwt-authentication-bundle:^2.11.31.27.0Fixed in: 1.29.2composer require symfony/maker-bundle:^1.29.21.30.0Fixed in: 1.31.1composer require symfony/maker-bundle:^1.31.15.1.0Fixed in: 5.2.8composer require symfony/security-http:^5.2.82.8.0Fixed in: 3.4.49composer require symfony/security:^3.4.494.0.0Fixed in: 4.4.24composer require symfony/security:^4.4.242.8.0Fixed in: 3.4.49composer require symfony/symfony:^3.4.494.0.0Fixed in: 4.4.24composer require symfony/symfony:^4.4.245.0.0Fixed in: 5.2.9composer require symfony/symfony:^5.2.9References
- https://github.com/symfony/symfony/security/advisories/GHSA-5pv8-ppvj-4h68[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2021-21424[ADVISORY]
- https://github.com/symfony/symfony/commit/2a581d22cc621b33d5464ed65c4bc2057f72f011[WEB]
- https://symfony.com/cve-2021-21424[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VRUS2H2SSOQWNLBD35SKIWIDQEMV2PD3[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UC7BND775DVZDQT3RMGD2HVB2PKLJDJW[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RH7TMM5CHQYBFFGXWRPJDPB3SKCZXI2M[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KENRNLB3FYXYGDWRBH2PDBOZZKOD7VY4[WEB]
- https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html[WEB]
- https://github.com/symfony/symfony[PACKAGE]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-21424.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2021-21424.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2021-21424.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-guard/CVE-2021-21424.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/maker-bundle/CVE-2021-21424.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/lexik/jwt-authentication-bundle/CVE-2021-21424.yaml[WEB]