Advisory

GHSA-5pv8-ppvj-4h68

Also known as: BIT-symfony-2021-21424, CVE-2021-21424

Summary

Prevent user enumeration using Guard or the new Authenticator-based Security

Details

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 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-13 20:23 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

17 affected packages; all Packagist · All systems
PackageAffectedFix
symfony/securityintroduced 5.0.0, fixed 5.2.8The export has no generic command for this ecosystem.
symfony/security-guardintroduced 2.8.0, fixed 3.4.48The export has no generic command for this ecosystem.
symfony/security-guardintroduced 4.0.0, fixed 4.4.23The export has no generic command for this ecosystem.
symfony/security-guardintroduced 5.0.0, fixed 5.2.8The export has no generic command for this ecosystem.
symfony/security-coreintroduced 2.8.0, fixed 3.4.48The export has no generic command for this ecosystem.
symfony/security-coreintroduced 4.0.0, fixed 4.4.23The export has no generic command for this ecosystem.
symfony/security-coreintroduced 5.0.0, fixed 5.2.8The export has no generic command for this ecosystem.
lexik/jwt-authentication-bundleintroduced 2.0.0, fixed 2.10.7The export has no generic command for this ecosystem.
lexik/jwt-authentication-bundleintroduced 2.11.0, fixed 2.11.3The export has no generic command for this ecosystem.
symfony/maker-bundleintroduced 1.27.0, fixed 1.29.2The export has no generic command for this ecosystem.
symfony/maker-bundleintroduced 1.30.0, fixed 1.31.1The export has no generic command for this ecosystem.
symfony/security-httpintroduced 5.1.0, fixed 5.2.8The export has no generic command for this ecosystem.
symfony/securityintroduced 2.8.0, fixed 3.4.49The export has no generic command for this ecosystem.
symfony/securityintroduced 4.0.0, fixed 4.4.24The export has no generic command for this ecosystem.
symfony/symfonyintroduced 2.8.0, fixed 3.4.49The export has no generic command for this ecosystem.
symfony/symfonyintroduced 4.0.0, fixed 4.4.24The export has no generic command for this ecosystem.
symfony/symfonyintroduced 5.0.0, fixed 5.2.9The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences